Last active
October 14, 2019 21:11
-
-
Save deepal/8ffed0b8be5d0e364cccf5160359c07f to your computer and use it in GitHub Desktop.
Minimal Fluentd conf
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
<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