Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Support date math in index names #254

Closed
smowky opened this issue Sep 23, 2020 · 1 comment
Closed

Support date math in index names #254

smowky opened this issue Sep 23, 2020 · 1 comment
Labels
backlog We have not started working on this enhancement New feature or request

Comments

@smowky
Copy link

smowky commented Sep 23, 2020

Is your feature request related to a problem? Please describe.
I’m using elasticsearch ILM to rotate my indexes and now alerts are searching through all indexes metricbeat-* which is quite expensive operation.
It would be nice to have a possibility to search only for last 2 day indexes instead

Describe the solution you'd like
Would be nice define search index as:
<logstash-{now/d-2d}>,<logstash-{now/d-1d}>,<logstash-{now/d}>
or
%3Clogstash-%7Bnow%2Fd-2d%7D%3E%2C%3Clogstash-%7Bnow%2Fd-1d%7D%3E%2C%3Clogstash-%7Bnow%2Fd%7D%3E

Describe alternatives you've considered
Alternative solutions is using aliases , which is be default not as easy since elasticsearch ILM actions does not have a possibility do add/remove alias

@smowky smowky added the enhancement New feature or request label Sep 23, 2020
@skkosuri-amzn skkosuri-amzn removed their assignment Nov 28, 2020
@skkosuri-amzn skkosuri-amzn added the backlog We have not started working on this label Nov 28, 2020
@qreshi
Copy link
Contributor

qreshi commented Feb 18, 2022

Closing in favor of opensearch-project/alerting#74

@qreshi qreshi closed this as completed Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backlog We have not started working on this enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants