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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...