This document describes how to use LogListener to quickly import the collection configuration rules of other log topics.
LogListener collection configuration refers to the collection path, use limits, collection mode, and other collection rules configured in the LogListener collection server before log collection. The collection configuration rule import feature allows users to import the collection configuration of an existing log topic to quickly configure LogListener collection rules when they add or modify collection configuration. This eliminates repetitive and tedious operations for configuring multiple log topics and improves the efficiency of collection configuration.
- By default, the collection of a log file can only be configured in only one LogListener.
- To apply multiple collection configurations to one file, you need to add a soft link to the source file and add the soft link to another group of collection configuration.
- Only LogListener 2.3.9 or above allows adding multiple collection paths.
Log in to the CLS console.
In the left sidebar, click Log Topic to go to the log topic management page.
Click the ID/name of an existing log topic to go to the log topic information page.
Click the Collection Configuration tab to go to the Collection Configuration tab page.
Click Import Configuration Rule in the upper-right corner.
In the configuration rule list displayed in the pop-up window, select the configuration rule of a log topic to import and click OK to import it to the collection configuration of the current log topic.
- The configuration rule list displays all log topics that support the cross-region log topic configuration rule import feature in the current region by default.
- Only the collection rules of log topics for which a collection path is configured can be imported to the collection configuration of the current log topic.
LogListener can collect text logs in the following collection modes: Full Text in a Single Line, Full Text in Multi Lines, Full Regular Format (Single-Line), Full Regular Format (Multi-Line), JSON Format, and Separator Format.