FROM fluent/fluentd
RUN /usr/bin/fluent-gem install fluent-plugin-elasticsearch
docker-compose.ymlversion: '3.3'
services:
fluent:
image: hoanpv/fluent:elasticsearch
volumes:
- $PWD/fluentd.conf:/fluentd/etc/fluent.conf:ro
fluentd.conf<source>
@type forward
port 24224
bind 0.0.0.0
</source>
<match **.**>
@type elasticsearch_dynamic
host elasticsearch
port 9200
logstash_format true
logstash_prefix ${record['domain']}
# interval
<buffer>
flush_interval 5s
</buffer>
</match>
Content type
Image
Digest
Size
12.9 MB
Last updated
almost 7 years ago
docker pull hoanpv/fluent:elasticsearch