This repository is an automated build job for a docker image containing fluentd service with a elasticsearch plugin installed and ready to use as an output_plugin.
The following plugins are available for this image:
- ElasticSearch
uken/fluent-plugin-elasticsearch - ElasticSearch (AWS)
atomita/fluent-plugin-aws-elasticsearch-service
Basically fluentd-plugin-elasticsearch
The semver version of the FluentD installed
Daily build of the image
Full tag with all versions of relevant installed software.
docker run -v ${PWD}/fluent.conf:/fluentd/etc/fluent.conf -p 24224:24224 -it govtechsg/fluentd-elasticsearch:latest
To activate this, see the file at ./config/fluent/default.conf and uncomment the section that indicates it's for an AWS ElasticSearch service in the match *.** codeblock.
| Key | Description |
|---|---|
LOGSTASH_PREFIX |
The prefix to use for the log entry |
AWS_ACCESS_KEY |
Access key to access the cluster |
AWS_SECRET_KEY |
Secret key to access the cluster |
AWS_ES_ENDPOINT |
The AWS ElasticSearch cluster endpoint URL |
To activate this, see the file at ./config/fluent/default.conf and uncomment the section that indicates it's for a self-hosted ElasticSearch service in the match *.** codeblock.
| Key | Description |
|---|---|
LOGSTASH_PREFIX |
The prefix to use for the log entry |
ELASTIC_HOST |
Hostname of the ElasticSearch service |
ELASTIC_PASSWORD |
Password of the ElasticSearch user |
ELASTIC_USER |
Username of the ElasticSearch user |
Outputs fluentd and plugin versions
version-info
To build the image:
make build;You will need container-structure-test to run the tests:
make test;To run this in a Docker container without installing the container-structure-test, use:
make test.docker;To retrieve the versioning details, use:
make version;make publish;| Key | Description |
|---|---|
DH_USERNAME |
Username for DockerHub |
DH_PASSWORD |
Password for DockerHub |
Available as open source under the terms of the MIT License.