Splunk Search

Is it possible to use a lookup for a field that has OR condition?

xbbj3nj
Path Finder

How do I lookup for a field which has Or condition.

example
Source Destination File name
act bank indexes_%
bank act indices_% OR integer_%

OR does not work, should I use pipe character ?

Tags (1)
0 Karma

Ayn
Legend

Lookups don't implement boolean functions like that - they're just doing straightforward matching. You can optionally configure them to do wildcard matching or CIDR matching but that's it.

What you could do instead is to have separate lines in your lookup for the statements instead. Like this:

source,destination,file_name
act,bank,indexes_*
bank,act,indices_*
bank,act,integer_*

Note that in order for this to work, you need to configure the match_type to be WILDCARD(file_name) in the lookup definition in transforms.conf.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...