fluent-plugin-file-alternative
fluent-plugin-file-alternative copied to clipboard
creates a buffer_path directory using yyyy.mm.dd directory
<match tomcat.catalina.**>
type file_alternative
path /logs/%Y.%m.%d/java/catalina.%H.%M
</match>
Odd thing is that it correctly writes the logs to the named files, but it creates /logs/yyyy.mm.dd/java directory and then complains if it is removed.
It seems that it's using the yyyymmdd as the buffer path? When td-agent outputs the config file:
<match tomcat.catalina.**>
type file_alternative
path /logs/%Y.%m.%d/java/catalina.%H.%M
output_data_type attr:createdAt,sourceHost,class,method,level,messages
field_separator SPACE
output_include_tag false
output_include_time false
flush_interval 5s
flush_at_shutdown true
time_slice_format %Y%m%d%H%M
buffer_path /logs/test-multiline/yyyy.mm.dd/java/catalina.HH.MM
</match>
It depends on file buffer plugin's behavior. We can fix it if needed, but its priority is low for me (any serious problems?) Patches are welcome to fix it.
Agreed that it's an annoyance not a problem, but we keep getting reports from users that it's a mistake on our part (since it's in a directory of directories named by date) and every once in awhile someone removes the directory and it stops the logging.