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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...