Commit 4400f51f authored by Giraud Yoan's avatar Giraud Yoan
Browse files

Initial commit

parents
FROM python:3.6-alpine
RUN pip install elasticsearch-curator && rm -rf /var/cache/apk/*
COPY ./config/ /config
RUN /usr/bin/crontab /config/crontab.txt
CMD ["/usr/sbin/crond","-f"]
actions:
1:
action: delete_indices
description: >-
Delete indices older than ${UNIT_COUNT:1} ${UNIT:months} (based on index name), for logstash-*
prefixed indices.
options:
ignore_empty_list: True
timeout_override:
continue_if_exception: True
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: logstash-
exclude:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: ${UNIT:months}
unit_count: ${UNIT_COUNT:1}
exclude:
2:
action: delete_indices
description: >-
Delete indices older than ${UNIT_COUNT:1} ${UNIT:months} (based on index name), for metricbeat-*
prefixed indices.
options:
ignore_empty_list: True
timeout_override:
continue_if_exception: True
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: metricbeat-
exclude:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: ${UNIT:months}
unit_count: ${UNIT_COUNT:1}
exclude:
3:
action: delete_indices
description: >-
Delete indices older than ${UNIT_COUNT:1} ${UNIT:months} (based on index name), for filebeat-
prefixed indices.
options:
ignore_empty_list: True
timeout_override:
continue_if_exception: True
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: filebeat-
exclude:
- filtertype: age
source: name
direction: older
timestring: '%Y-%m-%d'
unit: ${UNIT:months}
unit_count: ${UNIT_COUNT:1}
exclude:
---
client:
hosts:
- ${ES_HOST:127.0.0.1}
port: ${ES_PORT:9200}
url_prefix:
use_ssl: ${USE_SSL:True}
certificate: ${CACERT:''}
client_cert: ${CURATOR_CERT:''}
client_key:
ssl_no_validate: False
http_auth: ${HTTP_AUTH:''}
timeout: ${TIMEOUT:30}
master_only: ${MASTER_ONLY:False}
logging:
loglevel: INFO
logfile:
logformat: default
#blacklist: ['elasticsearch', 'urllib3']
0 0 * * * curator --config /config/config_file.yml /config/action_file.yml
FROM docker.elastic.co/elasticsearch/elasticsearch:7.3.1
RUN bin/elasticsearch-plugin install -b com.floragunn:search-guard-7:7.3.1-36.1.0
FROM docker.elastic.co/kibana/kibana:7.3.1
RUN bin/kibana-plugin install https://oss.sonatype.org/service/local/repositories/releases/content/com/floragunn/search-guard-kibana-plugin/7.3.1-36.0.0/search-guard-kibana-plugin-7.3.1-36.0.0.zip
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment