Install
An up-to-date link for Filebeat installation is available on its Filebeat official webpage. Open the Filebeat website and click Download.Configure
The Filebeat configuration file consists of two sections:inputs and output. inputs 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:
- Open the
filebeat.ymlfile and add the following data:
- /var/log/*.log: File(s) path
- laas-example.gcore.com:443: Kafka Endpoint on the Logging page
- yourlogin.yourtopic: Your username on the Logging page and your topic name separated with a dot (.)
- yourlogin: Your username on the Logging page
- yourpassword: Your password
inputs section following the provided guide.
Descriptions of the OUTPUT parameters
Descriptions of the OUTPUT parameters
- output.kafka : Servers for log export (Kafka servers).
- hosts : Address of server(s) where logs will be exported to.
- topic : Topic(s) where logs will be exported to.
- sasl.mechanism : Authentication mechanism that helps to verify a username and password entered to sign into your logs storage.
- sasl.username : Username that helps to verify the sender.
- password : Password that helps to verify the sender.
- ssl.enabled : Security protocol used to encrypt your data and protect it from theft (true).
- Save the changes in the Filebeat configuration file.
- Restart Filebeat, and it will begin sending logs to the Gcore Managed Logging.