INPUT
and OUTPUT
. INPUT
determines the source of the logs you need to collect, and OUTPUT
indicates the destination where they will be sent. Here’s how to set up the configuration file correctly:
fluent-bit.conf
file and add the following data:INPUT
for different log sources, go to the “Input” section of the Fluent Bit documentation and click the log source you need.
For example, if you want to gather logs from a specific file, open the guide for Tail. Tail is a utility on UNIX-like systems used to display the tail end of a file. It helps Fluent Bit to read changes in the log file. You need to fill in the INPUT
so that it corresponds with Tail.
Descriptions of the OUTPUT parameters
fluent-bit.conf
file.
OUTPUT
section. This will ensure that Fluent Bit forwards date and time in a different format that is suitable for services like nginx.