Comments (2)
I'm sorry if you accidentally deleted something you did not mean to delete. The functionality you are seeking already exists, after a fashion (just no prompting).
The --dry-run
or -n
flag lets you see the output of what curator Would have attempted
:
$ curator --dry-run delete --older-than 4
2014-07-10T15:40:52.548 INFO main:644 Job starting...
2014-07-10T15:40:52.548 INFO main:647 DRY RUN MODE. No changes will be made.
2014-07-10T15:40:52.549 INFO _new_conn:188 Starting new HTTP connection (1): localhost
2014-07-10T15:40:52.551 INFO log_request_success:57 GET http://localhost:9200/ [status:200 request:0.002s]
2014-07-10T15:40:52.551 INFO command_loop:538 Beginning DELETE operations...
2014-07-10T15:40:52.553 INFO log_request_success:57 GET http://localhost:9200/logstash-*/_settings?expand_wildcards=closed [status:200 request:0.001s]
2014-07-10T15:40:52.561 INFO command_loop:558 Would have attempted deleting index logstash-2014.07.05 because it is 2 days, 0:00:00 older than the calculated cutoff.
2014-07-10T15:40:52.561 INFO command_loop:558 Would have attempted deleting index logstash-2014.07.06 because it is 1 day, 0:00:00 older than the calculated cutoff.
2014-07-10T15:40:52.561 INFO find_expired_data:306 logstash-2014.07.07 is 0:00:00 above the cutoff.
2014-07-10T15:40:52.561 INFO find_expired_data:306 logstash-2014.07.08 is 1 day, 0:00:00 above the cutoff.
2014-07-10T15:40:52.561 INFO find_expired_data:306 logstash-2014.07.09 is 2 days, 0:00:00 above the cutoff.
2014-07-10T15:40:52.562 INFO find_expired_data:306 logstash-2014.07.10 is 3 days, 0:00:00 above the cutoff.
2014-07-10T15:40:52.562 INFO command_loop:580 DELETE index operations completed.
2014-07-10T15:40:52.562 INFO main:671 Done in 0:00:00.047178.
Since this functionality is already here, and since Curator is designed to be able to do these things without needing user input by default, I will not be adding confirmation dialogue.
from curator.
Ah got it, makes sense. Thx!
from curator.
Related Issues (20)
- curator fails to install due to: SyntaxError: future feature annotations is not defined HOT 1
- config http_auth work properly,but username and password not HOT 1
- Curator month unit set to 31 days HOT 1
- Snapshot on indices created on pre ES 1.3 and updated to ES2.4 HOT 3
- Elasticsearch Curator RPM package does not contain a SHA256 Digest signature HOT 2
- build the curator 7 arm docker image error HOT 5
- 'indices' missing in stats dict HOT 3
- Curator silently fails if one of `client.certificate`, `client.client_cert` and `client.client_key` is not accessible HOT 4
- Docker build fail to create runable image HOT 12
- Unable to skip some indices while restoring
- [OLD docker] untergeek/curator `missing signature key` on server HOT 9
- max_primary_shard_size option for shrink & rollover ACTION HOT 1
- curator cronjob error HOT 2
- Edge case in metadata population at IndexList instantiation HOT 3
- Trying to snapshot all indices fails as Curator accesses system indices
- pip install elasticsearch-curator==7.0.0 failed due to pyyaml 6.0.0
- Manual ILM advance based on disk usage (per tier)
- docker pull throws `missing signature key` HOT 2
- Curator running failed in docker when upgrade to 8.0.8 as permssion error HOT 17
- Error: No such option: --config HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curator.