Splunk Search

How do you bucket two events starting using a timespan that starts with the first event?

rkondeti3
Explorer

My question is a mix of using the transaction command with the bin command.

What I would like to achieve is capturing when 2 consecutive POST requests are made in proxy logs within two seconds of each other. Straight up using | _bin span=2s misses out on events that might happen during odd seconds.

Essentially, I want the two second timer to start when the first event occurs, and then looks for the next event (another POST request), within two seconds.

Is there a feasible way to achieve what I'm asking for? Or am I not making much sense?

0 Karma

adonio
Ultra Champion

when you say consecutive, do you mean that there is no other events in between those 2 POST events?
can you share some masked data sample?

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