Splunk Search

Clean up ip_intel kvstore

weetabixsplunk
Explorer

Hi guys,

I can see how this question comes across as dumb but I would like to remove duplicated entries from my ip_intel kv store.

I understand the whole purpose of a kv_store is used for data that constantly gets updated. I am finding lots of duplicated IPs in my ip_intel kvstore and I'd like to know if there's a better way to do it than just 

| inputlookup ip_intel | dedup ip

I'd like to cleanup the file from duplicates and not just create a dedup search.

 

 

Thanks! 🙂

 

Labels (1)

Azeemering
Builder

Normally what I would do to keep the intel kvstores clean and fresh is to limit the age of the entries by running a daily cleanup job:

A simple vanilla flavored example:

|inputlookup ip_intel |eval treshold = now()-86400 |where time>treshold ||outputlookup ip_intel

inventsekar
SplunkTrust
SplunkTrust

Hi @weetabixsplunk i am not sure of this  ip_intel kvstore, but, in first place how the duplicate entries entered this kvstore and can not you simply search the duplicate entries and delete them, i am not sure, just asking your ideas, suggestions. 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...