Created
September 28, 2017 19:52
-
-
Save garystafford/9e9fc87dd2de0a1e353e9a72c45e87af to your computer and use it in GitHub Desktop.
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
# fluentd config for logging demo | |
<source> | |
@type forward | |
port 24224 | |
</source> | |
<filter **> | |
@type concat | |
key log | |
stream_identity_key container_id | |
multiline_start_regexp /^\S+/ | |
multiline_end_regexp /\s+.*more$/ | |
flush_interval 120s | |
timeout_label @processdata | |
</filter> | |
<label @ERROR> | |
<match **> | |
@type stdout | |
</match> | |
</label> | |
<label @processdata> | |
<match **> | |
@type stdout | |
</match> | |
</label> | |
<match **> | |
@type elasticsearch | |
logstash_format true | |
host elk | |
port 9200 | |
index_name fluentd | |
type_name fluentd | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment