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!

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...