cd to the directory of the extracted files, and run the following command to install Filebeat.# Execute the installation script to install the filebeat service..\\install-service-filebeat.ps1# Install the template files.\\filebeat.exe setup -e# Start the filebeat servicestart-service filebeat
filebeat.reference.yml file, copy it, and rename it to filebeat.yml. Open filebeat.yml and modify the `output.kafka` section to the following content. This configuration directs Filebeat to send logs to the CLS Kafka producer endpoint.output.kafka:enabled: truehosts: ["${region}-producer.cls.tencentyun.com:9095"] # TODO service address; public network port 9096, private network port 9095topic: "${topicID}" # TODO topicIDversion: "0.11.0.2"compression: "${compress}" # Configures the compression method. Supported methods include gzip, snappy, and lz4, for example, "lz4".username: "${logsetID}"password: "${secret_id}#${secret_key}"
Parameter | Description |
Authentication mechanism | Currently supports SASL_PLAINTEXT. |
hosts | The CLS Kafka address. Configure it based on the region of the target log topic for writing. See Service Endpoint. |
topic | The CLS Kafka topic name. Configure it as the log topic ID. For example: 76c63473-c496-466b-XXXX-XXXXXXXXXXXX. |
username | The CLS Kafka access username. Configure it as the logset ID. For example: 0f8e4b82-8adb-47b1-XXXX-XXXXXXXXXXXX. |
password | The CLS Kafka access password. The format is ${secret_id}#${secret_key}. For example: XXXXXXXXXXXXXX#YYYYYYYY. To obtain the key information, go to Key Acquisition. |
Region | Network type | Port Number | Service Entry |
Guangzhou | Private Network | 9095 | gz-producer.cls.tencentyun.com:9095 |
| Public Network | 9096 | gz-producer.cls.tencentcs.com:9096 |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback