in_tailInput plugin allows Fluentd to read events from the tail of text files. Its behavior is similar to the
in_tailis included in Fluentd's core. No additional installation process is required.
in_tail, it will start
td-agentrestarts, it starts reading from the last position
*can be used as a placeholder that expands to the actual file path, replacing '/' with '.'. For example, if you have the following configuration
*and strftime format can be included to add/remove watch file dynamically. At interval of
refresh_interval, Fluentd refreshes the list of watch file.
*or strftime dynamic path, set this parameter to
true. Instead, you should guarantee that log rotation will not occur in
multiline_flush_interval 5s, in_tail flushes buffered event after 5 seconds from last emit. This option is useful when you use
format_firstlineoption. Since v0.12.20 or later.
pos_filehandles multiple positions in one file so no need multiple
in_tailuses parser plugin to parse the log. See parser article for more detail.
tail -Fitself. When rotating a file, some data may still need to be written to the old file as opposed to the new one.
falsewill significantly reduce CPU and I/O consumption when tailing a large number of files on systems with inotify support. The default is
truewhich results in an additional 1 second timer being used.
in_tail(via Cool.io) uses inotify on systems which support it. Earlier versions of libev on some platforms (eg Mac OS X) did not work properly; therefore, an explicit 1 second timer was used. Even on systems with inotify support, this results in additional I/O each second, for every file being tailed.
in_tailwork properly without the additional watch timer. At some point in the future, depending on feedback and testing, the additional watch timer may be disabled by default.
true. It suppress repeated permission error logs.
log_leveloption allows the user to set different levels of logging for each plugin. The supported log levels are:
tail -Fcommand behaviour by default, so
in_tailreads only newer logs. If you want to read existing lines for batch use case, set
nocreateparameter and it doesn't create new file after triggered log rotation. It means
in_tailcan't find new file to tail.
logrotatesetting which doesn't include