You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My goal is to prune snapshots. I was going to use count to partition the snapshots into buckets and then purge all but the most successful entry, but that doesn't seem to be supported.
Actual Behavior
2021-02-08 12:15:04,839 INFO Trying Action ID: 0, "delete_snapshots": Prune snapshots
2021-02-08 12:15:36,528 ERROR Failed to complete action: delete_snapshots. <class 'TypeError'>: filter_by_count() got an unexpected keyword argument 'pattern'
Hi
I had the same issue. so I checked out the code and I found out that filter_by_count() function only supports pattern in INDICES not in SNAPSHOTS.
I was wondering if you would mind supporting the "pattern" arg in snapshots too.
thanks
untergeek
changed the title
filter_by_count() got an unexpected keyword argument 'pattern'
Allow filter_by_count() + 'pattern' to work with Snapshots
Mar 3, 2023
For usage questions and help
Please create a topic at https://discuss.elastic.co/c/elasticsearch
Perhaps a topic there already has an answer for you!
To submit a bug or report an issue
Using a count filter with the
pattern
argument is not implemented for snapshots. Compare indexlist.py#L877 to snapshotlist.py#L335.Expected Behavior
My goal is to prune snapshots. I was going to use
count
to partition the snapshots into buckets and then purge all but the most successful entry, but that doesn't seem to be supported.Actual Behavior
Steps to Reproduce the Problem
Specifications
Context (Environment)
Unable to prune snapshots effectively.
Detailed Description
n/a
The text was updated successfully, but these errors were encountered: