Splunk Search

limiting search by a second time range

fk319
Builder

I have a search that spans several minutes, but due to flashchart, I can only view a 1 minute window.

starttime="2/12/2014:0:0:0" endtime="2/12/2014:1:0:0"
| stats stuff
| search starttime="2/12/2014:0:10:0" endtime="2/12/2014:0:11:0"

This does not work, any suggestions?

Tags (2)
0 Karma

dmaislin_splunk
Splunk Employee
Splunk Employee

Can you elaborate on what you are trying to accomplish? Using stats you will lose all the other fields and you can't run another search after that with a starttime and endtime at the end. Have you tried eventstats?

0 Karma

fk319
Builder

I have events that have a start and an end. I would like to know how many events I have each second. so by computing before the report window an can count starts that have not ended yet, ie that are still running during my report window. I am using streamstats to count, I was not able to get meaningful data from eventstats.

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...