This topic describes common console management operations for LogCollector collection configuration, including modifying collection rules, changing the associated host group, and deleting collection configurations.
View collection configuration information
After creating a collection configuration, you can view its basic information in the console.
- Select the region where torch log service is located from the top navigation bar.
- On the left navigation bar, select Common functions > Log collection.
- in the LogCollector log collection tab under the Task list section, click the name of the collection configuration you want to view.
- In the search box, you can enter the project name or ID, log topic name or ID, or collection configuration name or ID to filter collection configurations.
- View collection configuration details.
- The page displays the basic information, collection rule details, and host group information for the collection configuration.
- Basic information section: displays the collection configuration's name and ID, associated log topic name and ID, and the creation time of the collection configuration.
- Collection rules tab: displays detailed information about the collection rules, including collection path, mode, and other basic details, as well as advanced configurations such as filters.
- Host group information tab: displays the host group name and ID.
Start or pause collection configuration
After you create a collection configuration, it is enabled by default. You can start or pause it as you need.
- Select the region where torch log service is located from the top navigation bar.
- On the left navigation bar, select Common functions > Log collection.
- First Then locate the specified ingestion configuration in the task list under the LogCollector tab. From the corresponding Actions column, click ... > Start, or click ... > Pause.
- In the dialog box, click OK.
Modify collection rule
After you create a collection configuration, LogCollector will parse, collect, and store the logs from the specified directory in TLS according to the specified rule. If the log path, log type, or other parameters change, update your collection rules promptly in the console.
Notice
Modifying the project or log topic corresponding to the collection configuration is not supported.
- Select the region where torch log service is located from the top navigation bar.
- On the left navigation bar, select Common functions > Log collection.
- and then in the task list section under the LogCollector log collection tab, click the name of the collection configuration you want to edit.
- In the search box, you can enter the project name or ID, log topic name or ID, or collection configuration name or ID to filter collection configurations.
- To reset collection paths, modes, and other rule settings, click Modify collection rule in the upper right corner.
Change the host group for the collection configuration
Each collection configuration must be bound to a host group so it can be delivered to the servers in that group. These servers will collect log data according to the specified rules You need to specify a host group when creating a collection configuration. If the servers corresponding to a project or application change, you can adjust the log source by modifying the host group in the collection configuration.
- Select the region where torch log service is located from the top navigation bar.
- On the left navigation bar, select Common functions > Log collection.
- and then in the task list section under the LogCollector log collectiontask list section under the LogCollector log collection tab, click the name of the collection configuration you want to edit.
- In the search box in upper right corner, you can enter the project name or ID, log topic name or ID, or collection configuration name or ID to filter collection configurations.
- Click Associate host group in the upper right corner to reset the host group for the collection configuration.
Import collection configuration
TLS supports batch importing collection configurations to a specified log topic.
- 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, under the LogCollector log collection tab, click Import collection configuration.
- In the Collection rule import task panel, complete the following settings and then click Next step: execute the task.
- After confirming that the log topic import task is complete, click Complete.
Delete collection configuration
If you no longer need some certain collection rules due to business needs, you can delete the corresponding collection configuration directly.
Warning
- Deleting collection configurations is irreversible. Proceed with caution.
- After you delete the collection configuration, the corresponding server will stop collecting and reporting log data according to the specified rules. However, data that has already been collected will not be deleted before it expires.
- 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 locate the specified collection configuration in the task list under the LogCollector tab. From the corresponding Actions column, click ... > Delete.
- Confirm the collection configuration to be deleted in the dialog box, and then click Delete.