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: Username from the Managed Logging page and topic name, separated by a dot (.)
- endpoint: Kafka endpoint — find this on the Managed Logging page in the Gcore Customer Portal
- yourlogin: Username from the Managed Logging page
- yourpassword: Password from the Managed Logging page
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 used to verify the username and password for the logs storage.
- security_protocol: Security protocol used to encrypt data in transit.
- sasl_jaas_config: JAAS configuration required for SASL authentication.
- key_serializer: Serialization format used to convert message keys sent to Kafka.
- value_serializer: Serialization method applied to message content before transmission to Kafka.