Splunk Search

Query to filter logs based on the condition

navd
New Member

I have host=abc_cloud_aws_dev
host = abc_cloud_aws_qa

Here is my basic search string
index=myindex host=abc_cloud* , to display all the events , but I want to check and display events which are having abc_cloud and also which contains dev in as part of host

Tags (1)
0 Karma
1 Solution

pradeepkumarg
Influencer

Will this work ?

  index=myindex (host=abc_cloud* OR host=\*dev*) 

View solution in original post

0 Karma

pradeepkumarg
Influencer

Will this work ?

  index=myindex (host=abc_cloud* OR host=\*dev*) 
0 Karma

navd
New Member

yes it worked thanks

0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...