Skip to content

Instantly share code, notes, and snippets.

@wardbekker
Created April 14, 2020 08:45
Show Gist options
  • Save wardbekker/91bea1badc05ee636a0ba9aa376ae0ff to your computer and use it in GitHub Desktop.
Save wardbekker/91bea1badc05ee636a0ba9aa376ae0ff to your computer and use it in GitHub Desktop.
FluentD example for output to Loki
<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