Splunk Search

How to build a chart on unique field

wish2hate
New Member

I am trying to achieve building multiple area graph on one chart where my input is:

foo=blue
foo=purple
foo=red
foo=red
foo=red
foo=purple

And when I do splunk search, I would expect my search to be:

{get all logs} | top limit=0 "foo" | fields "foo" count

Where I would produce the following results:

red:       3
purple:  2
blue:      1

Now what I am seeking to get this type of count by time with all 3 different fields in ONE area graph.
Can someone please show me how to do this?

0 Karma

kiamco
Path Finder

you might want to just use a
|timechart

like

...base search
|timechart count(foo) by foo
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...