It's a modificated version of official FluentD image with support of integration with Coralogix and K8S.
You can build image manually with cmake utility
$ make build
or pull ready image from our repository:
$ docker pull coralogixrepo/fluentd-coralogix-image:latest
Also you can deploy this image with docker-compose
.
For details watch Docker-compose example.
This image provides collecting logs from:
For example you can setup sending logs from nginx:
http { ... access_log syslog:server=<FLUENTD_HOST>:5140,tag=nginx_access; error_log syslog:server=<FLUENTD_HOST>:5140,tag=nginx_error info; ...
This service listen port 12201
and can receive message in Graylog2
format,
for example from Docker GELF
.
It received logs in JSON format:
$ curl -X POST -d 'json={"action":"login","user":2}' \
$ http://<FLUENTD_HOST>:9880/applications.tag_name;
also data includes sender hostname information(hostname).
Used to receive event logs from other Fluentd instances, the fluent-cat command, or client libraries.
For example can be provided for Docker
.
If you run container manualy
$ docker run -dit \
$ --log-driver=fluentd \
$ --log-opt fluentd-address=<FLUENTD_HOST>:24224 \
$ alpine echo "Hello world!"
or with docker-compose
:
version: "3"
services:
web:
restart: always
image: nginx
container_name: nginx
environment:
- NGINX_HOST=example.com
logging:
driver: fluentd
options:
fluentd-address: <FLUENTD_HOST>:24224
ports:
- "80:80"
- "443:443"
This image have K8S
support.
For details watch Kubernetes example.
Also you can install it with Helm package manager.
This image build automatically with Travis CI. To provide image version add tag to your commit and it will be grabbed with CI worker.
Attention!
Image will be builded only if commit was made in master branch. If you want to change this condition see .travis.yml.