Splunk Search

How to create a bar chart count by specific field values

dibrova911
New Member

I am new to Splunk
I need to know how to create bar chart count only by certain tags
For example event has tag=t1,t2,t3
I need create bar chart in x axis is only tag=t1, t2
Search

... | chart count by tag

Return chart with all tag (t1, t2, t3)values

0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Filter the tags using search or where command before your chart command.

... | where tag="t1" OR tag="t2" | chart count by tag

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

Filter the tags using search or where command before your chart command.

... | where tag="t1" OR tag="t2" | chart count by tag
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...