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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...