Last active
February 22, 2020 02:04
-
-
Save thinkmicroservices/8ff0a331ecb204443dc3f3ef49911c13 to your computer and use it in GitHub Desktop.
Fluentd Docker configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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