You must configure the MobileFirst Server for
the IBM MobileFirst™ Platform Operational
Analytics.
About this task
The following steps describe how to configure the
MobileFirst Server for
the
IBM MobileFirst Platform Operational
Analytics.
Procedure
- In the worklight.properties file,
set the wl.analytics.url property to point to the
deployed WAR file.
wl.analytics.url=http://<hostname>:<port>/analytics-service/data
For example, if the Liberty server is at
host.ibm.com on
port 8080, then the
wl.analytics.url property is
as follows:
wl.analytics.url=http://host.ibm.com:8080/analytics-service/data
- In the worklight.properties file,
set the wl.analytics.username and the wl.analytics.password properties.
- Optional: If you want to access the MobileFirst Analytics
Console from
the MobileFirst Operations
Console,
set the wl.analytics.console.url property in the worklight.properties file.
wl.analytics.console.url=http://<hostname>:<port>/analytics/console
For example, if the Liberty server is at
host.ibm.com on
port 8080 and the context root is
analytics, then
the
wl.analytics.console.url property is as follows:
wl.analytics.console.url=http://host.ibm.com:8080/analytics/console
- Optional: If you want to send logging information from a package other than the
worklight package, in the worklight.properties file, set the
wl.analytics.logs.packages property to the relevant package name, for example:
#Capture logs from the user defined packages (by default logs captured only from the "com.worklight" package)
wl.analytics.logs.package=my.package.com
Results
The
MobileFirst Server now
forwards data to the
IBM MobileFirst Platform Operational
Analytics.