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!

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!

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