+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Create custom charts for client logs

We can create a custom chart for client logs that contain log information that is sent with the platform's Logger API. The log information also includes contextual information about the device, including environment, app name, and app version.


Before you begin

You must log custom events to populate custom charts. For information on sending custom events from the client app, see Capturing custom data.

In this example, we use client log data to create a flow chart. The final graph shows the distribution of log levels in a specific app. You also have the following data available to show in a chart:


Procedure

  1. From the client app, populate the data by sending captured logs to the server. See Sending captured logs.
  2. In the MobileFirst Analytics Console, click the Custom Charts tab on the Dashboard page. We can create a chart based on the analytics messages that were sent to the server.
  3. Click Create Chart to create a new custom chart.
  4. Provide the following values:

    • Chart Title: Application and Log Levels
    • Event Type: Client Logs
    • Chart Type: Flow Chart

  5. Click the Chart Definition tab.
  6. Provide the following values:

    • Source: Application Name
    • Destination: Log Level
    • Property: your app name

  7. Click Save.


Results

Figure 1. Application and Log Levels

Flow chart that shows app log levels.

Parent topic: Custom charts