20.10.7 Customizing the Views of Graphs

The dashboard provides default graphs. These graphs are created using the available data in the elastic search. However, you can create custom visualization. For example, instead of a line chart you can create a bar chart. Instead of displaying numbers for a unique user, you can create a visualization of Gauge. You can create custom dashboards by adding default visualization or any custom visualizations you have created. The following sample use cases illustrate how to customize views of the default graphs available in the dashboard:

Use Case: Customizing Unique Users Logged In Graph

  1. Click Analytics Dashboard > Visualize > Create new Visualization.

  2. Click Edit from the top page.

  3. Click Options from the right top corner of Unique Users Logged In graph.

  4. Click Edit Visualization.

  5. Click Edit Filter.

  6. Click Edit as Query DSL.

  7. Copy the Elasticsearch Query DSL to a notepad.

    You can also manually note the Metric information:

    • Aggregation

    • Field

    • Custom Label

  8. Click New Visualization > Gauge. Select either Historic or Realtime dashboard.

  9. Add the filter you had copied in the notepad using Edit as Query DSL.

  10. Click Save.

  11. In realtime/historic data Metrics, specify the following values, and apply changes:

    1. Aggregation: Select Unique Count

    2. Field: Select userName.keyword

  12. Click Save. Provide the visualization with a title.

Use Case: Customizing View for Client IP Address Graph

Perform the following steps to customize the view from Vertical to Horizontal view of the chart:

  1. Click Analytics Dashboard > Visualize > Create new Visualization.

  2. Click New/Edit Visualization.

  3. Click Edit from the top page.

  4. Click Options from the right top corner of Client IP Address graph.

  5. Click Edit Filter.

  6. Click Edit as Query DSL.

  7. Copy the Elasticsearch Query DSL to a notepad.

    You can also manually note the Metric information:

    • Aggregation

    • Field

    • Custom Label

  8. Click Create a New Visualization.

  9. Select Historic or Realtime dashboard.

  10. Copy the filter you had copied in the notepad using Edit as Query DSL.

  11. In the Buckets field of X -axis

  12. Select the following values:

    1. Aggregation: Terms

    2. Field: SourceIP.keyword

      NOTE:Add another Bucket specifying the above fields.

    3. Click Apply changes.

  13. Click Save. Provide the visualization with a title.