Splunk Search

Best way(s) to track changes in count of IPs

jwalzerpitt
Influencer

Every night we scan our external systems for two reasons:

1) To see if unauthorized systems pop up
2) To see if there has been any change in open ports reporting

What would be the best way, or ways, to track this via search. I've been looking at diff, streamstats, delta., and so on, but wanted to hear others' thoughts on this matter.

Thx

Tags (3)
0 Karma
1 Solution

joshd
Builder

Store the output of the search in a lookup then use inputlookup and do a diff on the counts. You can also store things like 'last seen' 'first seen' etc... in the lookup which would prove useful for other use cases (tracking assets over time, etc).

Also the new KV store in 6.2 provides much more flexibility than lookups, I'd take a peak into that as well.

View solution in original post

joshd
Builder

Store the output of the search in a lookup then use inputlookup and do a diff on the counts. You can also store things like 'last seen' 'first seen' etc... in the lookup which would prove useful for other use cases (tracking assets over time, etc).

Also the new KV store in 6.2 provides much more flexibility than lookups, I'd take a peak into that as well.

somesoni2
Revered Legend

Once stored in lookups/kv store, based on your search get the list/count of IPs, you can use compare yesterday's data (from lookup/kv store) with today's data (search result) using diff, delta or stats. Providing your current search would be helpful in getting more accurate suggestions.

jwalzerpitt
Influencer

johd and somesoni2, thx for the information and recommendations... Much appreciated.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...