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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...