Integrate with con terra Applications / server side logging
service.monitor Analytics can be integrated with other con terra products. This is possible due to the same kind of handling and securing of http Requests. Once integration has been accomplished, the following parameters will be logged on client access:
-
basic HTTP request parameters (URL, protocol)
-
basic HTTP response parameters (request duration, HTTP status code)
-
User Agent
-
authentication information
-
client IP
Integrate with con terra security.manager
In order to log information about requests in your security.manager installation, you need to install the shipped GelfWebSecurityProcessor. This processor usually logs via UDP protocol, TCP protocol is also possible.
Steps for installation and configuration
-
Copy the *.jar files located in
[CD-CONTENTS]/software/service.monitor Analytics web/service-log/lib
and/lib-ext
(see below)-
to
[security.manager]/webapps/wss/WEB-INF/lib
-
to
[security.manager]/webapps/administration/WEB-INF/lib
-
-
File
[CD-CONTENTS]/software/service.monitor Analytics web/service-log/spring-log-bean-sample-security.manager.xml contains a pre-configured web security processor bean definition, which you need to copy
-
to
[security.manager]/webapps/administration/WEB-INF/classes/spring-security-config.xml
-
to
[security.manager]/webapps/wss/WEB-INF/classes/spring-security-config.xml
-
-
For enabling logging the previously added bean needs to be referenced in the Spring Web Processor lists. Please see file
[CD-CONTENTS]/software/service.monitor Analytics web/service-log/security-manager-<version>/spring-security-config-wss.xml
for understanding the configurational changes. -
Repeat bean referencing like defined in
[CD-CONTENTS]/software/service.monitor Analytics web/service-log/security-manager-<version>/spring-security-config-administration.xml
-
You have to define the target port and url in the security.manager
application.properties
under[SECURITY_MANAGER_DATA_FOLDER]/application.properties
analytics.gelf.server=myserver.domain.de analytics.gelf.port=12201 analytics.message.src=security.manager analytics.log.enabled=true
-
Please restart your Servlet Container after applying changes.
Integrate with con terra map.apps
In order to log information about requests inside of your map.apps installation, you need to install the shipped GelfWebSecurityFilter
. This processor usually logs via UDP protocol, TCP protocol is also possible.
Steps for installation and configuration
-
Copy the
*.jar
files located in[CD-CONTENTS]/software/service.monitor Analytics web/service-log/lib
and/lib-ext
(see below)-
to
[map.apps]/WEB-INF/lib
-
-
File
[CD-CONTENTS]/software/service.monitor Analytics web/service-log/spring-log-bean-sample-map.apps.xml
contains a pre-configured filter bean definition, which you need to copy-
to
[map.apps]/WEB-INF/classes/spring-filter-config.xml
-
-
For enabling logging the previously added bean needs to be referenced in the filter chain. Please see file
[CD-CONTENTS]/software/service.monitor Analytics web/service-log/map.apps-<version>/spring-filter-config.xml
for understanding the configurational changes.-
You have to define the target port and url in the map.apps
application.properties
under[MAP_APPS_DATA_FOLDER]/application.properties
analytics.gelf.server=myserver.domain.de analytics.gelf.port=12201 analytics.message.src=map.apps
-
-
Please restart your Servlet Container after applying changes.
Required jar-Files for integrating map.apps and security.manager
The files required for integration scenarios are residing in folder service-log/lib
:
-
ct-analytics-usagelog-api-1.x.jar
-
ct-analytics-usagelog-api-2.x.jar
-
gelfclient-<version>.jar
-
netty-all-<version>.FINAL.jar
security.manager does always requirect-analytics-usagelog-api-1.x.jar
. Likewise map.apps apart of those versions starting wih 4.7, which do usect-analytics-usagelog-api-2.x.jar
.
However, additional files from service-log/lib-ext
may be required. Please see the table below for the additional files:
Version | files from /lib-ext für administration-webapp` |
files from /lib-ext für wss-webapp` |
---|---|---|
4.4 |
|
|
4.5 |
|
|
4.6.4 |
|
|
4.7.1 |
|
|
4.8.0 |
|
|
4.9 |
|
|
4.10 |
|
|
4.10.1 |
|
|
4.11 |
|
|
4.12 |
|
|
4.13 |
|
|
4.14 |
|
|
4.14.1 |
||
4.15 |
, please use ready-configured |
, please use ready-configured |
4.16.x |
, please use ready-configured |
, please use ready-configured |
Version | Dateien aus `/lib-ext |
---|---|
3.x |
Please use integration files from service.monitor Analytics 4.3.0. |
4.0 |
, only in combination with |
4.1 |
, only in combination with |
4.2.0 |
, only in combination with |
4.2.1 / 4.2.2 |
, only in combination with |
4.3 |
, only in combination with |
4.4 |
, only in combination with |
4.5.1 |
, only in combination with |
4.6 |
|
4.7 |
, please use |
4.8 |
, please use |
4.9 |
, please use |
Integrate with other con terra products
A lot of other con terra products support service.monitor Analytics integration as shown above. Please ask for Support Plus or Consultancy Services for additional Support.
Logging parameters
- useragent
-
Information about the user’s OS and browser
Example:
"user_agent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0"
- client_ip
-
Anonymized client IP
Example:
"client_ip": "123.12.12.000"
- request
-
Request parameter information
Example:
"request": { "server_host": "test.remote.host.com", "url_query": "?queryProperty=testvalue", "server_context: "/wss", "referrer": "http://www.mytest.de", "protocol": "https" }
- auth
-
Authentication information
Example:
"auth": { "authenticated": true, "user_id": "userA", "login_time": "2011-17-10 11:17:50", "group_name": "sampleGroup", "roles": [ "admin", "editor" ] }
- response
-
Response parameter information
Example:
"response": { "status": 200 }
- response_time
-
Response time in nano seconds and response time in milli seconds
Example:
"response_time": 12345678, "response_time_ms": 1234.5678