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