map.apps user interaction
Procedure
-
Executing the statements from
dev-console/ct-analytics.txt
in the Kibana Dev Console -
Importing Kibana Dashboards, Queries and Index Patterns from
kibana/ct-analytics/export.ndjson
file -
Configuring the logstash pipeline
ct-analytics
-
Setting up the ingest pipeline
ingest/ct-monitor-analytics.txt
(see below) -
Uploading the analytics bundles to map.apps Manager (see below)
-
Configuration of map.apps (see below)
Publish Elastic Ingest Pipeline
The ingest pipeline adds more time values to the events.
The contents of
-
ingest/ct-monitor-temporal.txt
-
ingest/ct-monitor-analytics.txt
to be sent via the Kibana Dev Tools
> Console
.
Upload Analytics Bundles
To use the bundles of service.monitor Analytics, install them in map.apps.
-
Login to the map.apps Manager as Admin user.
-
Go to the Bundles tab.
-
Click + Upload and select
ct-monitor-analytics-js-[VERSION].jar
.
service.monitor’s Analytics bundles are now displayed in the list of installed bundles. -
Refresh the map.apps Manager to see the Analytics tab.
Configuration of map.apps
You can use service.monitor to collect and display usage data of a map.apps installation.
Change or add the below properties in the map.apps application.properties
file to integrate service.monitor in map.apps.
Afterwards, restart the Servlet Container or reload the context.
The path of the map.apps data.directory.location is different than the one of service.monitor Analytics.
|
#### service.monitor Integration
analytics.service.url=/monitor-analytics/resources/usage/log
analytics.message.src=map.apps
appservice.default.bundles=system,templatelayout,analytics_restservice
servicemonitor.base.url=/monitor
analytics.service.url
-
HTTP endpoint for collecting usage data by means of service.monitor Analytics webapp.
Property status: new
Default:<host>/monitor-analytics/resources/usage/log
analytics.message.src
-
Name of the message’s source (for analyses purposes).
Property status: new
Default:map.apps
appservice.default.bundles
-
Bundles, that are loaded for each newly created app.
If you add the
analytics_restservice
bundle to the property, all newly created apps will send the collected data to theanalytics.service.url
by default. This happens even if theanalytics_restservice
bundle is not listed in theallowedBundles
section of the new app, simplifying the one-time activation of service.monitor Analytics for all newly created apps.When editing and saving an app via Live-Configuration in map.apps the bundles mentioned above will be added to the
app.json
file. This change remains even if bundles are removed from theappservice.default.bundles
list again.This property applies only to apps provided via the map.apps app service and not to apps stored in the file system.
Property status: may already pre-exist
Default:system,templatelayout,analytics_restservice
servicemonitor.base.url
-
HTTP endpoint for embedding
/monitor
webapp as part of map.apps Management view.Property status: new
Default:<host>/monitor
If the map.apps is not running on the same host as the service.monitor Analytics Webapp, add the host to the allowedProxyUrls in the map.apps application.properties file.
|
Enable logging by app
To enable logging for an app, add one bundle with writer
component (e.g. analytics_restservice
) to the allowedBundles
section in the app.json
.
To enable logging for all newly created apps instead, see appservice.default.bundles
.
{
"load": {
"allowedBundles": [
...
"analytics_restservice"
]
}
...
}