kolla/docker/elasticsearch/elasticsearch-curator/extend_start.sh
Doug Szumski 37de8920aa Add Elasticsearch Curator Docker image
Kolla provides log aggregation, but no solution to set retention periods
for aggregated logs. It therefore accumulates log data indefinitely unless
a user manually intervenes. This change adds Elasticsearch Curator which
provides a mechanism for automating such retention periods [1].

[1] https://www.elastic.co/guide/en/elasticsearch/client/curator/current/about.html

The container contains cron to support running Curator periodically.

Change-Id: Ief2c554a64ef6cc971635d7e2a718f63c310fbf6
2019-11-28 18:26:35 +00:00

9 lines
333 B
Bash

#!/bin/bash
# NOTE(dszumski): Cron runs as root but should be configured to launch Curator
# by the elasticsearch user. Therefore this directory needs to be owned by
# the elasticsearch user.
if [[ ! -d "/var/log/kolla/elasticsearch" ]]; then
install -d -m 0755 -o elasticsearch -g elasticsearch /var/log/kolla/elasticsearch
fi