Splunk Cloud Platform

Use Wildcards, 'contains' or 'like' on lookup table - Splunk Cloud

JordanR
Observer

If I have a lookup table that contains the following:

error,priority
Unable to find any company of ID,P2
500 Internal Server Error,P1

 And result query with fields:

  • 500 Internal Server Error: {xxx}
  • Unable to find any company of ID: xxx

Using the below query only brings back direct matches:

<search query>
| lookup _error_message_prority error AS ErrorMessage OUTPUTNEW Priority AS Priority

Is there a way to use wildcards, 'like' or 'contains' when using lookup tables in Splunk Cloud?

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Yes, lookups can support wildcards.  Go to Settings->Lookups->Lookup definitions and edit the lookup.  Tick the "Advanced options" box and enter WILDCARD(error) in the "Match type" box.  Then it's up to the lookup file to have wildcards in the appropriate places.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...