You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Getting Started
Create resources
Copy page
Download PDF
Create resources
Basic log resource management mainly includes projects and topics. One log project can contain multiple topics. This topic introduces the steps to creating basic log resources in torch log service (TLS) console.​
Prerequisites​
  • The ECS instance on Volcanoengine that collects logs is obtained, and cloud assistant agent is installed and running properly. For instructions on installing cloud assistant, see Install cloud assistant client.​
  • The Volcanoengine ECS instance is in the same region as the TLS service. In this example, the North China 2 (Beijing) region is selected.​
Create a host group​
  1. In the top navigation bar, select the North China 2 (Beijing) region where TLS is located.​
  1. On the left navigation bar, select Resource management > Host group.​
  1. On the Host group management page, click Create host group.​
  1. In the Create host group dialog box, complete the following settings, and then click Create.​
  • ​
    Parameters​
    Example value​
    Description​
    Host group name​
    Host-group-a​
    Name of the host group.​
    Host group type​
    IP address​
    The type of host group.​
    Volcanoengine ECS​
    Enable​
    Enable and add the Volcanoengine ECS instances to be collected to the current host group.​
    • Only supports adding ECS instances with Cloud Assistant installed and both Cloud Assistant and the instance are in Running status.​
    • The system automatically installs LogCollector for the selected ECS instances.​
    • ECS instances that have started installing LogCollector cannot be stopped or uninstalled. Proceed with caution.​
    IP address​
    192.168.0.100​
    Server IP address.​
    Once ECS is enabled and LogCollector is successfully installed, the system automatically adds the ECS IP address.​
    LogCollector service log​
    Enable​
    After you enable this feature, the LogCollector client records runtime status and collection progress information in real time during operation.​
    LogCollector auto upgrade​
    /​
    After creating the host group, go to the LogCollector management tab on the host group details page to enable this feature.​
    IAM Project​
    default (default project)​
    Select the IAM project to which the host group belongs.​
    You can click Create project to create a new IAM project.​
    ​
Create a project​
  1. After the host group is created successfully, in the left navigation bar, select Resource management > Project.​
  1. On the Project page, click Create project.​
  1. In the Create project dialog, complete the following configurations, and then click Create.​
  • ​
    Parameters​
    Example value​
    Description​
    Log project name​
    project-a​
    The name of the log project.​
    Only supports Chinese, lowercase letters, numbers, underscores (_), and hyphens (-).​
    Description​
    test​
    Brief description of the log project.​
    IAM Project​
    default (default project)​
    Select the IAM project to which the project belongs.​
    You can click Create project to create a new IAM project.​
    Tags​
    /​
    The tags for the log project. In this example, no tags are set.​
    Tags are used to identify and classify resources. You can categorize projects and topics by tags to facilitate searching and resource aggregation.​
    ​
Create a topic​
  1. After the project is created, click Continue: Create topic in the prompt dialog box.​
  1. In the Create topic dialog box, complete the following configurations.​
  1. Enter the basic configuration.​
  • ​
    Parameters​
    Example value​
    Description​
    Topic name​
    topic-a​
    Name of the log topic.​
    Record external IP​
    Enable​
    This parameter determines whether to enable or disable the feature to record external IP addresses. By default, it is enabled. If enabled, the following metadata fields are automatically added to the log entries:​
    • __tag____client_ip__: the public IP address of the device where the log originates.​
    • __tag____receive_time__: The timestamp when the log reaches the server; it is in 10-digit Unixtime format.​
    Description​
    test​
    A brief description of the log topic.​
    Tags​
    /​
    The tags for the log topic. In this example, no tags are set.​
    ​
  1. Configure log storage time.​
Warning​
Logs that exceed specified storage time will be automatically deleted.​
  • ​
    Parameters​
    Example value​
    Description​
    Standard storage​
    30 days​
    Log retention period in the TLS standard storage layer.​
    The unit is days, and the valid range is 1 to 3650. Specify 3650 days for permanent storage.​
    • When infrequent access storage is enabled, the standard storage retention period ranges from 7 to 3650 days.​
    • When infrequency access storage and archive storage are enabled, the standard storage period ranges from 7 to 3650 days.​
    • When archive storage is enabled but infrequency access storage is disabled, the standard storage duration ranges from 30 to 3650 days.​
    Infrequent access storage​
    Do not enable​
    Log retention period in the infrequent access layer of TLS.​
    The unit is days, and the valid range is 1 to 3650. Specify 3650 days for permanent storage.​
    Archive storage​
    Do not enable​
    Log retention period in the archive layer of TLS.​
    The unit is days, and the valid range is 60 to 3650. If it is set to 3650, the storage time becomes permanent storage.​
    ​
  1. Fill in shard configuration.​
  • ​
    Parameters​
    Example value​
    Description​
    Number of shards​
    2​
    The number of log shards.​
    Each shard provides write capacity of 5 MiB/s and 500 times/s, and read capacity of 20 MiB/s and 100 times/s.​
    After creation, modifying the number of shards is not supported. However, the overall read and write capacity of the log topic can be increased through automatic split feature.​
    Automatic sharding​
    Enable​
    This parameter determines whether to enable or disable automatic sharding.​
    • (default) Enabled: When the amount of written data exceeds the existing shard service capacity continuously for 5 minutes, TLS automatically splits shards based on data volume to meet business needs. However, the number of shards after splitting can not exceed the maximum number of splits. New shard created within the last 15 minutes will not split automatically.​
    • Disabled: automatic sharding is not enabled.​
    Maximum number of splits​
    100​
    Maximum number of shard splits, i.e., the maximum number of all read-write state shards after shard splitting.​
    • The number of maximum shards is required to set only when Automatic sharding is enabled.​
    • If the maximum number of splits is less than or equal to the number of log shards, auto-splitting is not available.​
    ​
  1. Fill in advanced configuration.​
  • ​
    Parameters​
    Example value​
    Description​
    WebTracking​
    Enable​
    Enabling WebTracking allows you to quickly collect frontend tracking data through WebTracking.​
    Notice​
    After enabling WebTracking for a log topic, data written via the WebTracks API does not require authentication. This grants anonymous write access to the public network, but it may cause dirty data. For more details, see Use WebTracking to collect logs.​
    ​
  1. Click create.​
Next step​
​
Last updated: 2025.12.02 16:56:21