-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skip_index parameter to support regular expressions #31
Comments
@EduSandu please check the new version and test it. |
@giuliocalzolari awesome stuff - tested OK it matched and processed all indexes using the wildcard match and also skipped the .kibana indexes. I omitted initially during testing to change the Wondering if the |
@EduSandu uhmm very wierd... aws-lambda-es-cleanup/es-cleanup.py Line 56 in e0f6005
are you using Terraform to deploy it? can you confirm it? |
@giuliocalzolari no this wasn't a new domain standed up using Terraform. Would like to test having multiple expressions with a aws-lambda-es-cleanup/es-cleanup.py Lines 55 to 56 in e0f6005
should be amended as such? Not sure if re.search will support itself.cfg["skip_index"] = self.get_parameter("skip_index", ".kibana*").split(",")
|
The Regexp done like that
can match multiple patterns/indexes @EduSandu thanks for your support! |
Taking the following scenario into discussion where we would have the ES cleaner run against all indices in an ES cluster with the exception of a particular indice pattern, for example to exclude all indices matching
openshift-infra-%Y.%m.%d
.I've tested adding an expression as
openshift-infra-*
to the skip_index parameter and when invoked manually, it finds the respective indice but also returns:For the default .kibana,.kibana_5 indice that "Keeping..." output is not returned, thus I assume it is skipped successfully.
Not very familiar with Python, thus I want to ask if the
skip_index
variable supports delimiting indices through regular expressions? Alternatively I guess the indices can be defined in theindex
variable instead ofall
value, which also raises the same question, if it supports expressions? :)The text was updated successfully, but these errors were encountered: