This topic describes the steps for creating a Syslog log collection configuration through the TLS console.
Notice
This feature is in closed beta. If you have relevant business needs, you can contact your account manager to enable the allowlist.
Syslog is a standardized log transmission protocol primarily used for collecting, forwarding, and storing system logs. It supports transport protocols such as UDP and TCP, but traditional implementations provide relatively basic functionality. For example, it often runs as the default logging service on Linux systems.
TLS supports collecting Syslog logs through the console or uploading Syslog logs using the Syslog protocol. With TLS features such as query and analysis, processing, consumption, delivery, monitoring and alerting, and visualization, you can implement scenarios such as business operations monitoring and data statistical analysis.
- Applicable only to Linux systems.
- Only supported on hosts running LogCollector version 2.4.2 or later.
- The host where LogCollector is installed must be able to access remote servers on port 80 and port 443.
Step 1 Select a log space
- Select the region where torch log service is located from the top navigation bar.
- On the left navigation bar, select Common functions > Log Collection.
- Then on the Log Collection page, in the LogCollector tab, click Create collection configuration.
Notice
For the regions below, manually select the log collection mode in the LogCollector tab.
Region: Hong Kong (China), Asia Pacific Southeast (Johor), Asia Pacific Southeast (Jakarta).
- Select project and topic, and then click Next: Select host group.
- The collected log data will be stored in the selected log topic.
Step 2 Select host group
- In the All host groups section, select the specified host group for log collection.
- After confirming the host group in the Selected host group section, click Next Step: Collection rule.
Step 3 Configure collection rule
- Select Collection type, and then select Syslog collection.
- Length must be between 3 and 64 characters.
- Only Chinese characters, letters, numbers, underscores (_), and hyphens (-) are allowed.
- Can not start or end with a hyphen (-).
- Enter the Plugin configuration, and then click Next step: check index configuration.
- Plugin configuration example:
- Description of parameters:
Step 4 Check index configuration
- Check index configuration.
- Follow the prompts on the page to set or update the index as needed. You can also click Import existing index configuration to import indexes from other log topics.
- If the index for this log topic is already configured, you can decide whether to update the index based on the log fields parsed by the collection rule.
Notice
- You must enable the index to query and analyze the collected log data.
- The updated index settings only apply to new data written afterward. For more instructions and limitations on query and analysis, see Query overview and Analysis Overview.
After you create the collection configuration, LogCollector collects logs and saves them to the specified log topic. You can then query and analyze logs in log topic. For details, see Query and analysis workflow.