Created
April 28, 2023 18:01
-
-
Save jcantrill/99d913f0def1b87719b402078e258a4c to your computer and use it in GitHub Desktop.
fluentd positionfile.conf
This file contains hidden or 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
<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