Splunk Search

What is the performance difference between join and lookup/ KVStore?

nicolocervo
Engager

I am importing in splunk many tables of data of 500 to 10000 events each and I need to use them to enrich events with scheduled searches. At the moment I import these tables using a modular input and dumping them into an index, I then join my saved searches results with the latest data from this index.
The tables are imported once a day to update if something changed (they usually are mostly unchanged).

 

 

index=my_events
| join type=left common_field
    [ search index=imported_data source=src earliest=-24h
       stats latest(*) as * ]

 

 

I know join is bad for performance and was wondering if importing the data in a KVStore and setting up an automatic lookup for the index with the data I want to enrich would be a better solution.
in this case i would overwrite the KVStore once a day with the new data.

Other solutions are welcome, these are the ones I came up with.
Thanks.

Labels (2)
Tags (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Ho @nicolocervo ,

use ko in ad the last Solution because it’s very slow and resource expensive.

in your case, if you have less that 10,000 rose, I hint to  use a lookup.

you fon’t news a kvstore because you have to drop and recreate the lookup every night

the other choice you shock explore  are DataModels:in fee words a db table containing al the data or also a Summary  index scheduling a Search from your index to have every day the data.

then use stata instead join to join data

you can find many samples of this approach in my other ansierà.

if you could share a sample of your seatch I could guide you in this approach 

index=my_events OR (index=imported_data source=src earliest=-24h)

| stats values(field1) AS field1 values(field2) AS field2 dc(index) AS dc_index values(index) AS index BY common_field

| where  dc_index=2

Ciao

Giuseppe 

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Splunk Developer Day announcements: AI agents, MCP tools, Forecasting, and Custom ...

Splunk Developer Day was packed with product and platform updates for developers building in the AI ...