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
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 ...