tencent cloud

Feedback

Creating Shipping Task

Last updated: 2024-01-20 17:44:35

    Overview

    You can ship log topic data to CKafka for real-time stream computing and storage. If you haven't purchased a CKafka instance, you can consider using the Consumption over Kafka feature of CLS.

    Prerequisites

    You have activated the CKafka service.
    Make sure that the current account has the permission to enable shipping to CKafka. If your account is a sub-account, it needs to be authorized by the root account first. For more information, see Examples of Custom Access Policies.

    Billing Description

    Log shipping incurs private network read traffic fees (cross-region shipping is not supported for now), which CLS charges based on the size after Snappy or lz4 compression. If your raw log is 100 GB and you choose Snappy for compression, around 50 GB will be billable. As the read traffic price is 0.032 USD/GB, the fees will be 50 GB * 0.032 USD/GB = 1.6 USD.

    Directions

    1. Create a CKafka instance in the same region as the log topic. For more information, see Creating Instance.
    2. Configure the following parameters to create a topic in the same region as the log topic. For more information, see Creating Topic.
    Preset ACL Policy: Disable this option.
    Show advanced configuration:
    CleanUp.policy: Select delete; otherwise, shipping will fail.
    max.message.bytes: Set this value to 8 MB or above. Otherwise, when the size of a single message in CLS exceeds the specified limit, the message cannot be written to the CKafka topic, and shipping will fail.
    3. Go to the CLS console and enter the shipping task management page or log topic management page as needed.
    On the left sidebar, click Shipping Task Management and select a region, logset, and log topic.
    On the left sidebar, click Log Topic and select a log topic to be shipped to CKafka to enter the log topic management page.
    4. Click the Ship to CKafka tab to enter the configuration page.
    5. Click *Edit on the right to enable shipping to CKafka. Then, select the target CKafka instance and topic as well as the log field to be shipped.
    6. Click OK to start shipping to CKafka. If the task status is Enabled, the feature is enabled successfully.
    Note:
    To cleanse the log data before shipping to CKafka, see Log Filtering and Distribution.

    FAQs

    What should I do if the log data cannot be shipped to CKafka?

    If ACL authentication is enabled in CKafka, the log data cannot be shipped. In this case, you need to disable the ACL of the topic.

    What should I do if the system prompts that I have no permissions to read/write the CKafka topic?

    If you directly use an API to ship data to CKafka, you may not have the read/write permissions of the CKafka topic. If you ship data in the console, the system will guide you through the authorization process, but if you directly call an API for shipping, you need to authorize manually. For more information, see CLS Service Role Authorization.
    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