Knowledge Management

How to generate a summary index containing only unique values when running hourly searches?

gesman
Communicator

I need to have summary index containing only unique values, say "src_ip" and "page_visited" from web traffic.
While I can run hourly searches and ... | dedup src_ip, page_visited - how do I avoid getting values into the summary index that already exist in there?

Note: hourly search generates about 25,000 unique pairs so using subsearch method against summary index to drop duplicates does not sound like a working solution.

Tags (1)

dolivasoh
Contributor

As you populate the summary index you could also populate a lookup table to reference at the beginning of the search for de-duplication.

index=blah | lookup my_table.csv id output summarized | search summarized!=1 | eval summarized=1 | stats avg(this) by that, id, summarized | outputlookup my_table.csv

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Could you elaborate on what you're doing and what kind of duplicates you want to avoid?

0 Karma

gesman
Communicator

Hi Martin,
I need to build a summary index of unique combinations of IP + user_agent + usernames that are using portal.
This summary index will be used as a lookup to detect in realtime if some user is suddenly logging in using IP or user_agent he never used before.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...