FluentD : Plugins
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Input Plugins
Fluentd has nine (9) types of plugins:
https://docs.fluentd.org/input
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
in_tail Input plugin allows Fluentd to read events from the tail of text files. Its behavior is similar to the tail -F command.Example Configuration :
<source>
@type tail
path /var/log/httpd-access.log
pos_file /var/log/td-agent/httpd-access.log.pos
tag apache.access
<parse>
@type apache2
</parse>
</source>
Parse : Meaning : to divide (a sentence) into grammatical parts and identify the parts and their relations to each other .
When Fluentd is first configured with
in_tail, it will start reading from the tail of that log, not the beginning. Once the log is rotated, Fluentd starts reading the new file from the beginning. It keeps track of the current inode number.

Comments
Post a Comment