Skip to content

Instantly share code, notes, and snippets.

@deepal
Last active October 14, 2019 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deepal/8ffed0b8be5d0e364cccf5160359c07f to your computer and use it in GitHub Desktop.
Save deepal/8ffed0b8be5d0e364cccf5160359c07f to your computer and use it in GitHub Desktop.
Minimal Fluentd conf
<match graylog2.**>
@type copy
<store>
@type gelf
host graylog.example.com
port 12201
flush_interval 5s
</store>
</match>
###
# myapp logs
###
<source>
@type tail
format json
time_key time
time_format %Y-%m-%dT%H:%M:%S.%LZ
path /var/log/apps/app1.log
tag graylog2.app1
pos_file /var/log/fluentd/app1.pos
</source>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment