Splunk Search

How to get two different field values In a query

aaa2324
Engager

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
Engager

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!

Introducing Ingest Actions: Filter, Mask, Route, Repeat

WATCH NOW Ingest Actions (IA) is the best new way to easily filter, mask and route your data in Splunk® ...

Splunk Forwarders and Forced Time Based Load Balancing

Splunk customers use universal forwarders to collect and send data to Splunk. A universal forwarder can send ...

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...