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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...