Skip to content

Instantly share code, notes, and snippets.

@jcantrill
Created April 28, 2023 18:01
Show Gist options
  • Save jcantrill/99d913f0def1b87719b402078e258a4c to your computer and use it in GitHub Desktop.
Save jcantrill/99d913f0def1b87719b402078e258a4c to your computer and use it in GitHub Desktop.
fluentd positionfile.conf
<system>
log_level info
</system>
<source>
@type tail
path /loopfs/in/*.log
pos_file /loopfs/in/my.pos
<parse>
@type csv
keys id, payload
</parse>
tag *
read_from_head true
# enable_watch_timer false
refresh_interval 5s
follow_inodes true
pos_file_compaction_interval 45s
</source>
<match loopfs.**>
@type file
path /tmp/out/${tag}
append true
<format>
@type csv
fields id,payload
delimiter " "
force_quotes false
</format>
<buffer tag>
@type memory
flush_mode immediate
</buffer>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment