Splunk Search

Start and End time of a search

Michael_Schyma1
Contributor

Hello everyone, I am having trouble getting my searches to run from 12:00 Am Sunday morning to 11:59:59PM on Saturday night ( 1 week) I want these reports to run every week, but i am not sure what to put in the manager under where it has a start and an end time under the search query. Any help would be appreachiated. Thank you.

Tags (1)
1 Solution

Ayn
Legend

Ayn
Legend

These should serve as useful inspiration:
http://docs.splunk.com/Documentation/Splunk/5.0/Search/Selecttimerangestoapply
http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/SearchTimeModifiers

Something like earliest time -1w@w0, latest time @w6 might be what you want.

Michael_Schyma1
Contributor

Thank you so much.

0 Karma

Ayn
Legend

If you run it the same week, just use @w0. The @ makes it "snap" to that day regardless.

Michael_Schyma1
Contributor

the problem is that the reports are being sent out wend. at 4 am cron =( 0 4 * * 3)...... so wont it run a week back from that time?

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...