Created
April 14, 2020 08:45
-
-
Save wardbekker/91bea1badc05ee636a0ba9aa376ae0ff to your computer and use it in GitHub Desktop.
FluentD example for output to Loki
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
<source> | |
@type tail | |
format none | |
path /var/log/*.log | |
pos_file positions.pos | |
tag varlog.* | |
path_key filename | |
</source> | |
<match varlog.**> | |
@type loki | |
url "http://localhost:3100" | |
flush_interval 1s | |
flush_at_shutdown true | |
buffer_chunk_limit 1m | |
extra_labels {"job":"varlogs", "host":"ward_workstation", "agent":"fluentd"} | |
<label> | |
filename | |
</label> | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment