Install
Download Filebeat from the official Filebeat webpage and install it following the instructions for the operating system.Configure
The Filebeat configuration file consists of two sections:inputs and output. inputs determines the log source, and output sets the destination. To set up the configuration file:
- Open the
filebeat.ymlfile and add the following data:
/var/log/*.log: File path to monitorlaas-example.gcore.com:443: Kafka endpoint — find this on the Managed Logging page in the Gcore Customer Portalyourlogin.yourtopic: Username from the Managed Logging page and topic name, separated by a dot (.)yourlogin: Username from the Managed Logging pageyourpassword: Password from the Managed Logging page
inputs section.
Descriptions of the OUTPUT parameters
Descriptions of the OUTPUT parameters
- output.kafka: Servers for log export (Kafka servers).
- hosts: Address(es) of servers where logs will be exported.
- topic: Topic(s) where logs will be exported.
- sasl.mechanism: Authentication mechanism used to verify the username and password for the logs storage.
- sasl.username: Username used to verify the sender.
- password: Password used to verify the sender.
- ssl.enabled: Security protocol used to encrypt data in transit (set to
true).
- Save the changes in the Filebeat configuration file.
- Restart Filebeat, and it will begin sending logs to the Gcore Managed Logging.