From 7a7756d7782ca05e4e946fab774ea416a65b3e4e Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 5 Nov 2018 17:35:07 +0800 Subject: [PATCH] update elk --- elk/README.md | 10 ++++++++++ elk/{ => curator}/delete-indices.yml | 0 2 files changed, 10 insertions(+) rename elk/{ => curator}/delete-indices.yml (100%) diff --git a/elk/README.md b/elk/README.md index 1524fc6..b2afc59 100644 --- a/elk/README.md +++ b/elk/README.md @@ -21,6 +21,8 @@ $ docker-compose up -d ## Delete indices older than 7 days +File: delete-indices.yml + ```yaml --- actions: @@ -45,6 +47,14 @@ actions: unit_count: 7 ``` +File: ~/.curator/curator.yml + +```yaml +client: + hosts: + - 127.0.0.1 +``` + ```bash $ pip install elasticsearch-curator $ curator delete-indices.yml diff --git a/elk/delete-indices.yml b/elk/curator/delete-indices.yml similarity index 100% rename from elk/delete-indices.yml rename to elk/curator/delete-indices.yml