mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update elk
This commit is contained in:
@@ -21,6 +21,8 @@ $ docker-compose up -d
|
|||||||
|
|
||||||
## Delete indices older than 7 days
|
## Delete indices older than 7 days
|
||||||
|
|
||||||
|
File: delete-indices.yml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
actions:
|
actions:
|
||||||
@@ -45,6 +47,14 @@ actions:
|
|||||||
unit_count: 7
|
unit_count: 7
|
||||||
```
|
```
|
||||||
|
|
||||||
|
File: ~/.curator/curator.yml
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
client:
|
||||||
|
hosts:
|
||||||
|
- 127.0.0.1
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ pip install elasticsearch-curator
|
$ pip install elasticsearch-curator
|
||||||
$ curator delete-indices.yml
|
$ curator delete-indices.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user