Splunk Search

Add automatic lookup for kvstore?

Shakira1
Explorer

I have kvstore which generate the data by API. 

when I use | lookup  mylookup id output data - its working

I want to convert it to automatic lookup in some index, but its not working.

any idea why?

Labels (1)
Tags (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Shakira1 ,

whad do you mean with "it's not working"? what's the bahavior?

did you created the lookup definition?

Could you share the related conf files (transforms.conf)?

Ciao.

Giuseppe

0 Karma

Shakira1
Explorer

The purpose is to enrichment the data automatically 

I did it in the UI under automatic lookup:

my lookup id AS id OUTPUT my fields_from_the_lookups

it always working but the diff here is that I'm using KVstore 

 

thanks

 

0 Karma

yuanliu
SplunkTrust
SplunkTrust

I'm not sure if I follow.  This is the UI under Automatic Lookup.

kvstore lookup.png

Can you illustrate how each field is populated? (Anonymize as needed.)

0 Karma

Shakira1
Explorer

Shakira1_0-1678874425397.png

this one?  this is working for me in SPL

and I add automatic lookup - which not working ( didnt extract the fields) 

0 Karma

yuanliu
SplunkTrust
SplunkTrust

Not sure where the confusion is, but no box in Advanced options accepts an expression like "| lookup  mylookup id output data". (Define a KV Store lookup in Splunk Web.)  Or maybe I just didn't get what the problem was.

Maybe you can explain/illustrate/screenshot how you "convert it to automatic lookup in some index"; in addition, what is "it" that you are trying to convert?  Also, "not working" conveys little information in the best of situations.  You need to explain the data set (including event format in the index), what fields are extracted at index time, what fields are extracted automatically at search time, etc.  In particular, how is the field id obtained when you use that SPL?  For example, calculated fields cannot be used in automatic lookup. The sequence of search-time operations is full of such nuances.

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...