I'm trying to figure out if there is a way to trigger some external action (e.g. a Webhook) when an index rolls over. I thought this might be possible using some kind of HTTP Input with a Watcher, but am not sure what the Input would actually be. I've considered:
- checking if new indexes have been created (and somehow determine if it is a new rollover index?)
- checking an index's rollover status (did this roll over since Watcher last checked?)
But I haven't found an obvious way to do either of these things. Ideally the Watcher (or other mechanism) would be resilient to changes in the rollover policy (name patterns, time/size of rollover, etc).
Is there some way to get either of those ideas to work? Or is there some other way of achieving this?
Thanks for any help!