Splunk Search

chart with where

Jasmine
Path Finder

Please help me on the below items:

#1)

| chart count(WriteType) over Collection by WriteType  | sort Collection

for above query  can we add conditon as below:  (i am facing issue here)

| chart count(WriteType) over Collection by WriteType |where c in("test","qa")  | sort Collection

 #2):

can we add one more field after WriteType as below:

| chart count(WriteType) over Collection by WriteType, c |where c in("test","qa")
Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

1) c doesn't exist unless it is a value in WriteType and even then it will contain a count not "test" or "qa"

2) No, you can only have two fields with chart.

Perhaps it would be better if you explained what you are trying to do, and share some representative anonymised sample events? (I may have said that before a few times!)

0 Karma
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...