Install Logstash
Download Logstash from the official Elastic website and install it per the instructions.Configure Logstash
A standard Logstash 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 Logstash with Kafka output and enable the Kafka Integration Plugin in your Logstash installation.
1. Configure Logstash with Kafka output by adding the following data to the logstash.conf
file:
- yourlogin.yourtopic: Your username and topic name, separated with a dot (.)
- endpoint: Kafka endpoint
- yourlogin.yourtopic: Your login
- yourpassword: Your password
TipYou can find your username, password, login, and topic name information in the Gcore Customer Portal on the Logging page. Learn more about logging configuration in our dedicated guide.
Descriptions of the 'output' parameters
Descriptions of the 'output' parameters
- topic_id : ID of the Kafka topic to which Logstash will publish messages
- bootstrap_servers : A comma-separated list of Kafka broker addresses
- sasl.mechanism : Authentication mechanism that helps to verify a username and password entered to sign in your logs storage
- security_protocol : Security protocol used to encrypt your data and protect it from theft
- sasl_jaas_config : JAAS configuration required for SASL authentication
- key_serializer : Serialization format used to convert keys of messages sent to Kafka
- value_serializer : Serialization method applied to the content of messages before they are transmitted to Kafka