The watch example at https://www.elastic.co/guide/en/watcher/current/api-rest.html#api-rest-put-watch shows how to specify searching all Logstash indexes:
"indices" : [
"logstash*"
],
The same example contains a time filter that limits the search to the five minutes before the schedule search time:
"filter": {
"range": {
"@timestamp" : {
"from": "{{ctx.trigger.scheduled_time}}||-5m",
"to": "{{ctx.trigger.triggered_time}}"
}
}
}
We keep months of daily Logstash indexes, but only today's index (and occasionaly yesterday's index) can contain events from the preceding five minutes.
Does the Watcher limit its search to the time relevant Logstash indexes? Or is there some other way to specify which Logstash indexes to search?
--
Joel Shprentz