Collecting Zabbix Data Through ECS Log Ingestion
Zabbix is a common open-source monitoring system with various alarm rules. LTS collects monitoring data from Zabbix to log streams. This section describes how LTS collects Zabbix data through ECS log ingestion.
Prerequisites
- Prepare an ECS for log collection. For details, see Purchasing an ECS. If you already have an available ECS, skip this step.
- Zabbix has been downloaded and installed on the ECS. For details, see Download and install Zabbix.
Configuring a Path for Storing Monitoring Data
Zabbix saves monitoring data on the server where Zabbix is located. You can perform the following steps to set a monitoring data storage path:
- Log in to the server where Zabbix is located.
- Open the zabbix_server.conf file.
vim /etc/zabbix/zabbix_server.conf
- Set the data storage path in the file.
ExportDir=/tmp/
- Restart the Zabbix service for the configuration to take effect.
systemctl restart zabbix-server
After the configuration takes effect, Zabbix generates a file (with the extension .ndjson) in the /tmp directory to save monitoring data.
Ingesting ECS Logs to LTS
- Choose Log Ingestion > Ingestion Center in the navigation pane. Then, click ECS (Elastic Cloud Server).
- The page for selecting a log stream is displayed.
- Select a log group from the drop-down list of Log Group, for example, lts-group-ECS.
- Select a log stream from the drop-down list of Log Stream, for example, lts-topic-ECS.
- Click Next: (Optional) Select Host Group.
- Select host groups and click Next: Configurations.
- Set the collection path to /tem/**/*.ndjson and retain the default values for other parameters. For details, see Ingesting ECS Text Logs to LTS.
Figure 1 Configuring the collection
- Click Next: Index Settings. On the displayed page, retain the default parameter settings. After configuring the index, you can query and analyze logs. For more information, see Setting Indexes.
- Click Submit. After the log ingestion is complete, click Back to Ingestion Configurations. An ingestion rule will be displayed on the Ingestion Management page.
- After the log ingestion is configured, you can view the reported logs on the LTS console in real time.
Click the log stream name in the Log Stream column of the target ingestion rule to access the stream details page.
- Click the Real-Time Logs tab to view logs in real time.
Logs are reported to LTS once every five seconds. You may wait for at most five seconds before the logs are displayed.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot