Splunk Search

Is a lookup definition necessary?

Junie
Observer

I've uploaded a lookup csv file, and was immediately able to use it from a inputlookup and lookup (referencing the file). I'm wondering why a lookup definition is needed to be set per the instructions from the Search tutorial? https://docs.splunk.com/Documentation/Splunk/8.0.1/SearchTutorial/Usefieldlookups

"It is not sufficient to share the lookup table file with an application. You must define the information in the lookup table file and how that information relates to the fields in your events. This is called a lookup definition.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hiu @Junie,
as you can read at https://docs.splunk.com/Documentation/Splunk/8.0.1/Knowledge/Aboutlookupsandfieldactions#Lookup_defi... lookup definition is mandatory:

A lookup definition provides a lookup name and a path to find the lookup table. Lookup definitions can include extra settings such as matching rules, or restrictions on the fields that the lookup is allowed to match. One lookup table can have multiple lookup
definitions.
All lookup types require a lookup definition. After you create a lookup definition you can invoke the lookup in a search with the lookup command.

I have seen that without lookup definition the inputlookup command runs without problems, instead the lookup command has problems.

Ciao.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

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 ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...