tencent cloud

Feedback

Managing Log Topic

Last updated: 2022-05-18 15:01:54

    Overview

    CLS manages the log data stored on it in the form of log topics and logsets. A log topic is the basic unit for log data collection, storage, search, and analysis, and a logset is used to categorize log topics for easier management.

    This document describes how to manage log topics in the console. We recommend you read Log Topic and Logset first to learn more about concepts and use cases.

    Prerequisites

    You have logged in to the CLS console.

    Directions

    Creating log topic

    1. Click Log Topic on the left sidebar.

    2. On the log topic management page, select a region and click Create Log Topic.

    3. In the pop-up window, enter the following information:

      • Log Topic Name: For example, enter nginx.
      • Storage Class: STANDARD by default. For more information, see Storage Class Overview.
      • Log Retention Period: 30 days by default. You can specify a log storage period, after which logs will be automatically cleared. If LogListener is used, and a time field in the log content instead of the collection time is used as the logging time, the time specified by the time field will be used to determine whether a log expires.
      • Logset Operation:
        • Select an existing logset: Select the target logset from the Logset drop-down list.
        • Create logset:
          Logset Name: For example, enter cls_test.
      • Log Topic Tag: Set a tag for the current log topic to be created, so that resources can be managed by category in different dimensions.
      • Advanced Settings:
        • Partitions: Enter a positive integer. It defaults to 1. For more information, see Topic Partition.
        • Partition Auto-Split: Enabled by default.
        • Maximum Partitions: Enter an integer up to 50.
        • Logset Tag: This field is available only when Logset Operation is Create logset. You can set a tag for the logset to be created.
    4. Click OK.
      After the log topic is created, you can click its ID/name on the Log Topic page to view its details.

    Note:

    • We recommend you select the same region as CVM or any other Tencent Cloud service from which logs are collected.
    • After the log topic is created, its region and logset cannot be modified.
    • Logs can be retained for 1 to 3600 days or permanently.

    Editing log topic

    1. Click Log Topic on the left sidebar.

    2. On the log topic management page, find the target log topic ID/name and click Edit.

    3. In the pop-up window, modify the basic information of the log topic.

    4. Click OK.

    Deleting log topic

    1. Click Log Topic on the left sidebar.

    2. On the log topic management page, find the target log topic ID/name and click Delete.

    3. In the pop-up window, click OK.

      Note:

      Once a log topic is deleted, you cannot recover its topic configuration and log data.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support