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
Revered Legend

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
Revered Legend

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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...