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!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Announcing the General Availability of Splunk Enterprise Security 8.1!

We are pleased to announce the general availability of Splunk Enterprise Security 8.1. Splunk becomes the only ...

Developer Spotlight with William Searle

The Splunk Guy: A Developer’s Path from Web to Cloud William is a Splunk Professional Services Consultant with ...