Splunk Search

Update a lookup file in realtime

chris
Motivator

I know outputcsv does not update (it should just append to) a lookup table until the search is finalized. Is there any other way this could be done?
Or is the best way to run a search every couple of minutes and write the csv?

Thanks,
Chris

1 Solution

Ledion_Bitincka
Splunk Employee
Splunk Employee

Updating CSV files is an expensive process because they cannot be updated in place. Even if you were able to update the lookup table in real time, due to bundle replication it will still take at least one minute before the lookup table gets to the indexers.

There are 3 ways you could update the lookup table
1. periodically run the search
2. write a custom search command that does what you want
3. use the MysqlConnector app, this app offers great lookup update performance

View solution in original post

Ledion_Bitincka
Splunk Employee
Splunk Employee

Updating CSV files is an expensive process because they cannot be updated in place. Even if you were able to update the lookup table in real time, due to bundle replication it will still take at least one minute before the lookup table gets to the indexers.

There are 3 ways you could update the lookup table
1. periodically run the search
2. write a custom search command that does what you want
3. use the MysqlConnector app, this app offers great lookup update performance

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...