Skip to content

Instantly share code, notes, and snippets.

@garystafford
Created September 28, 2017 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/9e9fc87dd2de0a1e353e9a72c45e87af to your computer and use it in GitHub Desktop.
Save garystafford/9e9fc87dd2de0a1e353e9a72c45e87af to your computer and use it in GitHub Desktop.
# 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