tencent cloud

Feedback

Creating Logsets and Log Topics

Last updated: 2024-01-10 16:10:45
    You need to create logsets and log topics to store and view the flow logs.
    Logset: Specifies the storage location in CLS for flow logs.
    Log topic: Specifies the minimum dimension of log storage, which is used to distinguish log types, such as Accept log.
    Note:
    This document describes how to create logsets and log topics that are not marked with Flowlog. These logsets and log topics cannot be used to create and use the advanced analysis dashboards.

    Directions

    1. Log in to the CLS console and click Log topic on the left sidebar to access the Log topic page.
    2. Select a desired region at the top of the page and click Create log topic.
    3. In the pop-up window, enter log topic name and partition, and click OK.
    Log Topic Name: For example, enter nginx.
    Storage Class: Select Real-time or Offline as needed.
    Log Retention Period: Enter an integer between 1-3600. It defaults to 30.
    Logset Operation:
    Select an existing logset: Select a target logset from the drop-down list of the Logset. The log retention period is subject to the logset retention period.
    Create a logset: Specify a logset name, for example, cls_test.
    Partitions: Enter a positive integer. It defaults to 1. For more information about topic partitions, see Topic Partition.
    Partition Auto-Split: Enabled by default.
    Maximum Partitions: Enter an integer up to 50.
    Note:
    After the auto-split feature is enabled, CLS will automatically split a log topic into partitions (up to 50) when the write requests or write traffic exceed the capacity of the log topic.
    If the number of partitions of a log topic has reached the set maximum value, CLS will no longer trigger auto-split, and the excessive partitions will be rejected with an error code returned.
    4. On the details page of the log topic, select the Index Configuration tab and click Edit in the top-right corner.
    
    5. Enable the index feature and click OK. Now you can view and search for flow logs.
    Note:
    You do not need to install agents or care about the server group status.
    If you do not need to publish flow logs to services such as COS, ignore shipping task.
    
    
    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