Sign inSign up

hoanpv/fluent

By hoanpv

Updated almost 7 years ago

Fluent with Elasticsearch Plugin

Image
0

38

hoanpv/fluent repository overview

I. Dockerfile

FROM fluent/fluentd

RUN /usr/bin/fluent-gem install fluent-plugin-elasticsearch

II. How to run

  • docker-compose.yml
version: '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>

Tag summary

Content type

Image

Digest

Size

12.9 MB

Last updated

almost 7 years ago

docker pull hoanpv/fluent:elasticsearch