Splunk Search

How to get two different field values In a query

aaa2324
Explorer

Hi Team

I am looking to get two different field values in a single query in Splunk, example, I have two different country codes and would like to get both their values 

Request.countrycode=EU

Request.country=SW

“Or” command is not working for this, any suggestions team ?

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Are you using "OR" - this has to be all in caps for it to work.

Request.countrycode=EU OR Request.country=SW
0 Karma

aaa2324
Explorer

Thanks, but how to get the stats count of these two values?

Stats count by Request.countrycode, Request.country

is not returning any values 

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Can you share some anonymised sample events and the current search you are working with, and some idea of what you are trying to get out of it?

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...