Skip to content

Instantly share code, notes, and snippets.

@thinkmicroservices
Last active February 22, 2020 02:04
Show Gist options
  • Save thinkmicroservices/8ff0a331ecb204443dc3f3ef49911c13 to your computer and use it in GitHub Desktop.
Save thinkmicroservices/8ff0a331ecb204443dc3f3ef49911c13 to your computer and use it in GitHub Desktop.
Fluentd Docker configuration
<source>
@type forward
port 24224
bind 0.0.0.0
<filter foo.bar>
@type parser
format json
key_name log
reserve_data true
</filter>
</source>
<match *.**>
@type copy
<store>
@type elasticsearch
host elasticsearch
port 9200
logstash_format true
logstash_prefix fluentd
logstash_dateformat %Y%m%d
include_tag_key true
type_name access_log
tag_key @log_name
flush_interval 1s
</store>
<store>
@type stdout
</store>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment