Configuring the MobileFirst Server for the IBM MobileFirst Platform Operational Analytics

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

  1. 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
  2. In the worklight.properties file, set the wl.analytics.username and the wl.analytics.password properties.
  3. 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
  4. 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.
Note: All properties in the worklight.properties file can also be set by using JNDI. For more information about JNDI settings, see Configuration of MobileFirst applications on the server.