Splunk Search

Creating a chart by search terms

beaumygod
New Member

If I have several terms I am searching for such as:

john OR frank OR mary OR jim OR jeff

How would I then create a chart of the sum or percentage of each search term, such as john returns 20 of 100 total results and is therefore 20% of the pie chart...

Tags (1)
0 Karma

ytamura
Path Finder

If you create a field that contains those names, you can just use the top command:

john OR frank OR mary OR jim OR jeff | top name

Field extractions can be predefined or done on the fly. Resource for field extraction: http://docs.splunk.com/Documentation/Splunk/latest/User/ExtractNewFields

Resource for top command:
http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/top

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...