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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...