Splunk Search

Can we run parallel writes in lookup file?

Taruchit
Contributor

Hello All,

I have a lookup file which stores data of hosts across multiple indexes. 

I have reports which fetch information of hosts from each index and updates the records in lookup file.

Can I run parallel search for hosts related to each index and thus parallelly update the same lookup file?

Or is there any risk of performance, consistency of data?

Thank you

Taruchit

Labels (3)
0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

If you need parallelism then you must use kvstore based lookups not CSV based.

View solution in original post

isoutamo
SplunkTrust
SplunkTrust

If you need parallelism then you must use kvstore based lookups not CSV based.

gcusello
SplunkTrust
SplunkTrust

Hi @Taruchit ,

in addition, you could use a lookup with kv-store so you'll have a key that guarantees the unicity of data.

Only one question: you're trying to use Splunk as a database and Splunk isn't a database, are you sure that you're using the best solution for your requirements?

Ciao.

Giuseppe

Taruchit
Contributor

Hi @gcusello,

Thank you for sharing your inputs.

I have a report which fetches last seen timestamp of hosts across multiple indexes.

I store the results in lookup file, and then use the lookup file as a bounded static source from where we can read the results in other reports and dashboards as required.

It helps me with two scenarios: -

1. If the report that generates results fails because of some reason, and as the result the downstream dashboards and reports that consume the data will also get impacted. And I will need to wait for Operations team to help with the issue or wait until the report runs again and hope that it runs successfully in the next execution.

2. Since I am referring a lookup file, the fetching and searching of records in SPLs written for reports and dashboards get faster.

Please share if you have any views to consider and improve.

Thank you

gcusello
SplunkTrust
SplunkTrust

Hi @Taruchit ,

let us know if we can help you more, or, please, accept one answer for the other people of Community.

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated by all the contributors 😉

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The lookup file is written by the search head in one go.  There is no parallelism.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...