Reputation: 375
I am searching for some data on splunk for a 5 minute time range. I want this query to run after every 5 minutes in splunk on it's own. How can this be done? I tried finding it on splunk but all I can see is how to schedule alerts and reports. And after the query is activated, how can we access the produced results generated by the query?
Upvotes: 3
Views: 16328
Reputation: 2313
Technically you can have a scheduled search, but it only makes sense to talk about a report or an alert. Your scheduled approach is actually the best-practice (as there is also the possibility for a real-time search of the last 5 minutes).
In the alerts/reports schedule options you have to set the following:
-6m@m
-1m@m
*/5 * * * *
Don't forget to set some trigger condition (for an alert) or a delivery method (for the report) ;)
Upvotes: 12