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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...