Splunk Search

how to search by too deferent champs

aalaa
Path Finder

Hello ,

how to search by two different champs ? I try "OR" but not result

Thanks

Tags (1)
0 Karma

nickhills
Ultra Champion

I'm not sure what you mean by 'champ', but if you mean 'field' or 'conditions':

search index=main my_field=alpha OR my_field=bravo

To write this more verbosely (and not necessary but may help with comprehension) this is the same as:

search (index=main AND (my_field=alpha OR my_field=bravo))

If my comment helps, please give it a thumbs up!
0 Karma

DMohn
Motivator

Can you please post the SPL query you used? Your question is a bit unclear...

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...