Click Analytics Dashboard > Edit.
Select the Unique Users Logged In graph. Click Options on the top right corner of the graph.
For example, to customize visualization for Unique Users Logged In Graph from the present number view to a gauge view, click Edit Visualization from the top right corner Options.
Click Add Filter > Edit Filter.
Click Edit as Query DSL.
Copy the Elasticsearch Query DSL to a notepad.
You can use Change All Filters option to add required filter options.
You can also manually note the Metric information:
Aggregation
Field
Custom Label
Click New Visualization > Gauge. Select either Historic or Realtime dashboard.
Add the filter you had copied in the notepad using Edit as Query DSL.
Click Save.
In realtime/historic data Metrics, specify the following values, and apply changes:
Aggregation: Select Unique Count
Field: Select userName.keyword
Click Save. Provide the visualization with a title.