Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Cloud Trace Service/ Getting Started/ Transferring CTS Traces to LTS and Viewing Them

Transferring CTS Traces to LTS and Viewing Them

Updated on 2024-11-22 GMT+08:00

CTS records details of tenant operations, such as creating, modifying, and deleting cloud service resources, and stores these records as traces in the trace list for seven days. To store traces for more than seven days, configure trace transfer to LTS. This allows CTS to periodically transfer trace files to LTS log streams for long-term storage.

This section describes how to configure the transfer and how to view historical traces in OBS buckets.

  1. Preparations

    Before configuring LTS transfer, ensure that you have registered with Huawei Cloud, completed real-name authentication, topped up your account, and granted the necessary permissions to users.

  2. Configuring Trace Transfer to LTS

    On the management tracker configuration page, enable Transfer to LTS so that trace files will be periodically transferred to an LTS log stream.

  3. Viewing Historical Traces in an LTS Log Stream

    You can view historical operation records in LTS log streams.

Constraints

For global services, you must configure trackers on the CTS console in the central region (CN-Hong Kong). This configuration enables the function of transferring traces to LTS. The preceding function will not take effect if you perform the configuration on the CTS console in any region outside the central region.

For details about Huawei Cloud global services, see Constraints.

Preparations

  1. Register with Huawei Cloud and complete real-name authentication.

    If you already have one, skip this step. If you do not have one, do as follows:

    1. Log in to the Huawei Cloud official website, and click Register in the upper right corner.
    2. Complete the registration as prompted. For details, see Registering with Huawei Cloud.

      Your personal information page is displayed after the registration completes.

    3. Complete individual or enterprise real-name authentication by referring to Real-Name Authentication.
  2. Top up your account.

    Transferring logs to LTS will incur fees. Ensure that your account balance is sufficient.

  3. Grant permissions for users.

    If you log in to the console using a Huawei Cloud account, skip this step.

    If you log in to the console as an Identity and Access Management (IAM) user, first contact your CTS administrator (account owner or a user in the admin user group) to obtain the CTS FullAccess permissions. For details, see Assigning Permissions to an IAM User.

  4. Configure CTS log ingestion on the LTS console.
    If you transfer CTS logs to LTS for the first time, perform the following steps to configure CTS log ingestion:
    1. Log in to the LTS console.
    2. Choose Log Ingestion in the navigation pane. On the displayed page, click CTS (Cloud Trace Service).
    3. On the displayed page, retain the default values for Log Group and Log Stream, and click Next: Configure CTS > Next: Configure Log Stream > Submit.

Configuring Trace Transfer to LTS

  1. Log in to the CTS console.
  2. Select a region closest to your application to reduce latency and accelerate access.

    In this example, select CN North-Beijing4.

  3. In the navigation pane, choose Tracker List.
  4. Click Configure in the Operation column of the system tracker.

    Figure 1 Configuring the system tracker

  5. On the Basic Information page, set parameters as follows and click Next.

    Figure 2 Setting basic information

    Table 1 Setting basic information

    Parameter

    Description

    Example in This Case

    Tracker Name

    The name of a management tracker is system by default and cannot be changed.

    system

    Enterprise Project

    Enterprise projects allow you to manage cloud resources and users by project. For details about how to enable them, see Creating an Enterprise Project.
    • If you have not enabled the enterprise project management service, skip this parameter.
    • If you have enabled the service, select default in this case.

    default

    Apply to Organization

    CTS supports the multi-account management capability of Organizations. After you enable Apply to Organization, the following functions are available. For details, see Organization Trackers.

    1. Use an organization administrator account to set CTS as a trusted service on the Organizations console and specify a delegated administrator account.
    2. You can use the delegated administrator account to configure an organization tracker in CTS. Then the delegated administrator account can implement cloud audit capabilities, such as security audit.

    Disable

    Operation

    If you select Exclude KMS traces, the tracker will not transfer the data about operations on Data Encryption Workshop (DEW).

    For details about DEW audit operations, see Operations supported by CTS.

    Deselect

  6. On the Configure Transfer page, set parameters as follows and click Next > Configure. After the tracker is configured, the system starts recording operations based on the new rule.

    Figure 3 Configuring transfer parameters

    Table 2 Setting basic information

    Parameter

    Description

    Example in This Case

    Transfer to LTS

    CTS records details of tenant operations, such as creating, modifying, and deleting cloud service resources, and stores these records as traces in the trace list for seven days. To store traces for more than seven days, configure trace transfer to LTS. This allows CTS to periodically transfer trace files to LTS log streams for long-term storage.

    To enable this function, toggle on Transfer to LTS.

    Enable

    Log Group

    The default log group name is CTS and cannot be changed. Traces will be transferred to the CTS/system-trace log stream.

    CTS

Viewing Historical Traces in an LTS Log Stream

After you configure the system tracker to transfer traces to an LTS log stream, the system will record operations based on the new rule and transfer historical trace files to the stream for you to view.

  1. On the Tracker List page, the log stream CTS/system-trace that you set when configuring the transfer is displayed in the Storage column of the system tracker. Click the stream name to go to the stream details page on the LTS console.

    Figure 4 Clicking the log stream name

  2. On the page displayed, view historical logs.

    For details about key fields in a trace, see Trace Structure and Example Traces.

    Figure 5 system-trace log stream page

  3. Click to download the log file to your local PC.

    NOTE:

    Each time you can download up to 5,000 log events. If you select over 5,000 log events, you need to transfer them to OBS and then download them from OBS.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback