Created
March 8, 2018 05:59
-
-
Save athurg/d7b0ac58431e9c60947791756338d2d5 to your computer and use it in GitHub Desktop.
Fluentd采集Docker日志配置范例
This file contains 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 | |
</source> | |
<filter docker.**> | |
@type record_transformer | |
<record> | |
log ${time} ${record["container_name"]} ${record["log"]} | |
</record> | |
remove_keys container_id,source | |
</filter> | |
<match docker.**> | |
@type file | |
format single_value | |
message_key log | |
buffer_queue_limit 10 | |
buffer_chunk_limit 10m | |
symlink_path | |
flush_at_shutdown true | |
path /var/docker/fluentd/log/docker | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment