File
File Output
Overview
This plugin has been designed to output logs or metrics to File.
Configuration
FileOutputConfig
add_path_suffix (*bool, optional)
Add path suffix(default: true)
Default: true
append (bool, optional)
The flushed chunk is appended to existence file or not. The default is not appended.
buffer (*Buffer, optional)
compress (string, optional)
Compresses flushed files using gzip. No compression is performed by default.
format (*Format, optional)
path (string, required)
The Path of the file. The actual path is path + time + “.log” by default.
path_suffix (string, optional)
The suffix of output result.
Default: “.log”
recompress (bool, optional)
Performs compression again even if the buffer chunk is already compressed.
Default: false
slow_flush_log_threshold (string, optional)
The threshold for chunk flush performance check. Parameter type is float, not time, default: 20.0 (seconds) If chunk flush takes longer time than this threshold, fluentd logs warning message and increases metric fluentd_output_status_slow_flush_count.
symlink_path (bool, optional)
Create symlink to temporary buffered file when buffer_type is file. This is useful for tailing file content to check logs.
Default: false
Example File
output configurations
Fluentd config result: