Splunk Search

column not appearing is results

acosgrove1991
Engager

Hello, I am new to splunk and having an issue with the following command:

SendersMNO="*" NOT ("VZ", "0", "Undefined") | where SenderType= "Standard"| stats count as Complaints by SendersAddress | sort 10 -Complaints | table SendersAddress, SendersMNO, Complaints

 

The command work; however, the result column for SendersMNO is not producing any results, any reason why? All help is appreciated.

Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

stats count as Complaints by SendersAddress will give you just two fields per event, the count (Complaints) and SendersAddress. SendersMNO is not passed through the stats command. If you want this beyond the stats command, you either have to add it to the by clause or use values() or list() in the stats command to include the values of this field.

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

stats count as Complaints by SendersAddress will give you just two fields per event, the count (Complaints) and SendersAddress. SendersMNO is not passed through the stats command. If you want this beyond the stats command, you either have to add it to the by clause or use values() or list() in the stats command to include the values of this field.

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

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 ...