Splunk Search

Using Streamstats to group the results happening within 10 seconds

macadminrohit
Contributor

Hi Experts,

I have a query which finds total number of non 200 responses and total responses based on the web access.logs by api and application location.

Now i need to group/club/count all the non 200 requests as 1 which happen within 10 seconds(for a location, api, application) as they are the results of the same problem.

index=web api=www.something.com | stats count as TOTAL count(eval(sc_status!=200)) as TOTAL_NON_200 count(eval(sc_status=404)) as TOTAL_404 by api location application 

I saw on other answers that i can group using streamstats , not sure how that would fit in my case. Can i get some help ?

Tags (1)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...