Splunk Search

Basic KV Store Question - Updating Thousands of Records at Once

alferone
Explorer

Hello all, 

I have a requirement to list all of our assets and show the last time they appeared in the logs of many different tools.  I wanted to use KV store for this.  We would run a search against each tool's logs and then update it's "last seen" time in the KV store for the particular asset.

I've attempted this a few ways, but I can't see to get it going.  I have the KV Store built with one column of last_seen times for one tool. But I am lost on how to update last_seen times for other tools for existing entries in the KV Store.

Any guidance would be appreciated.  Thank you!

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @alferone ,

why don't you use a summary index?

in this way you're sure to have the last updated version, you have also the previous versions and you don't have any limitation to the number of entries.

Ciao.

Giuseppe

View solution in original post

alferone
Explorer

So just to be clear, this would not be a candidate for KV Store?

0 Karma

alferone
Explorer

I was considering that initially.  Would the search be a little taxing to pull all of the different tools and times together?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @alferone ,

I don't think so, if you have a fixed frequency of data update.

I prefer a summary index for the reasons I listed in my before answer.

Ciao.

Giuseppe

0 Karma

alferone
Explorer

I'll give it a shot.  Thank you for your help!

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @alferone ,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

gcusello
SplunkTrust
SplunkTrust

Hi @alferone ,

why don't you use a summary index?

in this way you're sure to have the last updated version, you have also the previous versions and you don't have any limitation to the number of entries.

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Monitoring MariaDB and MySQL

In a previous post, we explored monitoring PostgreSQL and general best practices around which metrics to ...

Financial Services Industry Use Cases, ITSI Best Practices, and More New Articles ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Splunk Federated Analytics for Amazon Security Lake

Thursday, November 21, 2024  |  11AM PT / 2PM ET Register Now Join our session to see the technical ...