Install and configure Fluentd
Fluentd is a data collection and processing tool that supports multiple input sources, data formats, and output destinations. The tool allows you to stream and consolidate logs from different applications into one unified format and send this information to the Gcore Managed Logging.
Install Fluentd
Download Fluentd from the official Fluentd website and install it using your preferred method.
Configure Fluentd
A standard Fluentd configuration consists of three sections: input
, filter
, and output
. The input
and filter
sections depend on the sources of logs.
To send logs to Gcore Managed Logging, configure Fluentd with the Kafka Integration Plugin in your Fluentd installation.
1. Configure Fuentd with Kafka output by adding the following data to the fluent.conf
file:
2. Customize the highlighted values:
-
brokers: Kafka servers to which logs will be exported
-
username: Your username
-
password: Your password
-
default_topic: Your username and topic name, separated with a dot (.)
Tip
You can find your username, password, and topic name information in the Gcore Customer Portal on the Logging page. Learn more about Managed Logging configuration in our dedicated guide.
To explore more settings, check out the official Fluentd documentation.
3. Save the changes in the Fluentd configuration file.
4. Restart Fluentd. It will start sending logs to the Gcore Managed Logging.