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!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...