Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docker-elk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段孔乐
docker-elk
Commits
1ac84fbe
Commit
1ac84fbe
authored
Jul 24, 2018
by
Eugen Cristea
Committed by
Antoine Cotten
Jul 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Curator extension (#297)
parent
5cedd31d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
99 additions
and
0 deletions
+99
-0
Dockerfile
extensions/curator/Dockerfile
+13
-0
README.md
extensions/curator/README.md
+18
-0
curator.yml
extensions/curator/config/curator.yml
+24
-0
delete_log_files_curator.yml
extensions/curator/config/delete_log_files_curator.yml
+20
-0
curator-compose.yml
extensions/curator/curator-compose.yml
+18
-0
entrypoint.sh
extensions/curator/entrypoint.sh
+6
-0
No files found.
extensions/curator/Dockerfile
0 → 100644
View file @
1ac84fbe
FROM
alpine:3.8
ENV
CURATOR_VERSION=5.5.4
RUN
apk
--update
add
--no-cache
tini python py-pip
\
&&
pip
install
elasticsearch-curator
==
${
CURATOR_VERSION
}
COPY
entrypoint.sh /
WORKDIR
/usr/share/curator
COPY
config ./config
ENTRYPOINT
["/entrypoint.sh"]
extensions/curator/README.md
0 → 100644
View file @
1ac84fbe
# Curator
Elasticsearch Curator helps you curate or manage your indices.
## Usage
If you want to include the Curator extension, run Docker Compose from the root of the repository with an additional
command line argument referencing the
`curator-compose.yml`
file:
```
bash
$
docker-compose
-f
docker-compose.yml
-f
extensions/curator/curator-compose.yml up
```
All configuration files are available in the
`config/`
directory.
## Documentation
https://github.com/elastic/curator
extensions/curator/config/curator.yml
0 → 100644
View file @
1ac84fbe
---
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
client
:
hosts
:
-
${ELASTICSEARCH_HOST}
port
:
9200
url_prefix
:
use_ssl
:
False
certificate
:
client_cert
:
client_key
:
aws_key
:
aws_secret_key
:
aws_region
:
ssl_no_validate
:
False
http_auth
:
timeout
:
30
master_only
:
False
logging
:
loglevel
:
DEBUG
logfile
:
/usr/share/curator/curator.log
logformat
:
default
extensions/curator/config/delete_log_files_curator.yml
0 → 100644
View file @
1ac84fbe
actions
:
1
:
action
:
delete_indices
description
:
>-
Delete indices. Find which to delete by first limiting the list to logstash-
prefixed indices. Then further filter those to prevent deletion of anything
less than ${UNIT_COUNT} days old. Ignore the error if the filter does not result in an
actionable list of indices (ignore_empty_list) and exit cleanly.
options:
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: logstash-
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: ${UNIT_COUNT}
extensions/curator/curator-compose.yml
0 → 100644
View file @
1ac84fbe
version
:
'
2'
services
:
curator
:
build
:
context
:
extensions/curator/
environment
:
ELASTICSEARCH_HOST
:
elasticsearch
CRON
:
0 0 * * *
CONFIG_FILE
:
/usr/share/curator/config/curator.yml
COMMAND
:
/usr/share/curator/config/delete_log_files_curator.yml
UNIT_COUNT
:
2
networks
:
-
elk
depends_on
:
-
elasticsearch
extensions/curator/entrypoint.sh
0 → 100755
View file @
1ac84fbe
#!/bin/sh
echo
"
$CRON
/usr/bin/curator --config
${
CONFIG_FILE
}
${
COMMAND
}
"
>>
/etc/crontabs/root
# https://github.com/krallin/tini/blob/master/README.md#subreaping
tini
-s
--
crond
-f
-d
8
-l
8
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment