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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...