Splunk Search

What are the limitations regarding lookups?

DerBastler
New Member

Hey there. This isn't a specific code question but rather a more general question regarding limitations of lookups.
From programming in other languages I experienced it now and then that a file was "locked" by a program or user and it could not be written to by another program or user.

I am wondering if |outputlookup xyz.csv has a similar limitation.
let's say if there are dozens of alerts which also have an outputlookup command and trying to write at the same second, or if there are multiple users using a dashboard which includes an outputlookup - will the csv be able to handle it? Will they queue up? or will some attempts to write to the file be just ignored? If there are limitations, how do they differ when using a KV Store instead of a csv file?

Thank you!

Tags (1)
0 Karma
1 Solution

Ayn
Legend

Yes, this is a potential issue with using CSV files for lookups (one I've been bitten by myself and had to spend quite some time before discovering what the problem was), race conditions can occur when multiple users want to lock the same file for writing. It is one good reason to use KV store based lookups instead. A comparison between CSV based and KV store based lookups is available on this page: http://docs.splunk.com/Documentation/Splunk/7.1.1/Knowledge/DefineaKVStorelookupinSplunkWeb#KV_Store...

View solution in original post

0 Karma

Ayn
Legend

Yes, this is a potential issue with using CSV files for lookups (one I've been bitten by myself and had to spend quite some time before discovering what the problem was), race conditions can occur when multiple users want to lock the same file for writing. It is one good reason to use KV store based lookups instead. A comparison between CSV based and KV store based lookups is available on this page: http://docs.splunk.com/Documentation/Splunk/7.1.1/Knowledge/DefineaKVStorelookupinSplunkWeb#KV_Store...

0 Karma

DerBastler
New Member

Alrighty, thank you!

0 Karma
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...