Splunk Search

How to develop a search to find auditing activity that began on a specific date?

digital_alchemy
Path Finder

Scenario:

We have auditing activity that began on a specific day. I would like to search the firewall logs for activity from src_ip addresses that do not exist in the logs prior to that date for at least a couple of months.

Any suggestions on how to specify that I only want the results of new IP addresses seen for the first time during a specific timeframe?

Tags (4)
0 Karma
1 Solution

somesoni2
Revered Legend

One long running slow version, could be like this (assuming specific date is Jan 2nd 2017)

your base search spanning 2 months of time range | stats min(_time) as firstReceived by src_ip | where firstReceived >=strptime("2017-01-02","%Y-%m-%d")

View solution in original post

0 Karma

somesoni2
Revered Legend

One long running slow version, could be like this (assuming specific date is Jan 2nd 2017)

your base search spanning 2 months of time range | stats min(_time) as firstReceived by src_ip | where firstReceived >=strptime("2017-01-02","%Y-%m-%d")
0 Karma

digital_alchemy
Path Finder

Thanks, that works perfectly... and such a simple solution.

0 Karma
Get Updates on the Splunk Community!

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 ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...