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!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...