Dashboards & Visualizations

line graph multiple field values

HansK
Path Finder

I have a field which contents is a telephone number.

if I do:
host=ivr* | chart sparkline count by FIELDNAME

I get a graph for every FIELDNAME but what I want is a linegraph over time of top 20 FIELDNAME in one linegraph.

any ideas?

Tags (1)
0 Karma
1 Solution

HansK
Path Finder

host=ivr* [search host=ivr* | top 20 FIELDNAME | fields FIELDNAME] | timechart count by FIELDNAME

View solution in original post

0 Karma

HansK
Path Finder

host=ivr* [search host=ivr* | top 20 FIELDNAME | fields FIELDNAME] | timechart count by FIELDNAME

0 Karma

Ayn
Legend

You can solve this using a subsearch for grabbing the top 20 FIELDNAME values, then use these results in the outer search, so it only looks for data with one of these FIELDNAME values.

host=ivr* [search host=ivr* | top 20 FIELDNAME | fields FIELDNAME] | chart sparkline count
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...