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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...