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

Access Logging

Updated on 2025-02-28 GMT+08:00

Scenarios

The requests sent to DNS Resolver are logged in detail, such as the time when a request was sent, client IP address, request path, and server response.

Constraints

LTS is a regional service. You can only enable access logging for the DNS service in the following regions: CN Southwest-Guiyang1, AP-Jakarta, AP-Singapore, AF-Johannesburg, TR-Istanbul, and LA-Sao Paulo1.

To enable access logging, you need to interconnect DNS with LTS and create a log group and a log stream on the LTS console. For details, see the Log Tank Service User Guide.

Configuring LTS

  1. Create a log group.

    1. Log in to the management console.
    2. Click in the upper left corner and select the desired region and project.
    3. In the upper left corner of the page, click and choose Management & Governance > Log Tank Service.
    1. In the navigation pane on the left, choose Log Management.
    2. Click Create Log Group. In the displayed dialog box, enter a name for the log group.

      Set Log Retention Duration as needed.

    1. Confirm the settings and click OK.

  2. Create a log stream.

    1. On the LTS console, click on the left of the target log group.
    2. Click Create Log Stream. In the displayed dialog box, enter a name for the log stream.
    3. Select an enterprise project as needed.
    4. Confirm the settings and click OK.

Configuring Access Logging

  1. Go to the Resolvers page.
  2. Click in the upper left corner and select the desired region and project.
  3. Click the Access Logs tab.
  4. Click Configure Access Logging.
  1. Configure the parameters, such as Log Group, Log Stream, and VPC, as prompted.
  2. Click OK.

Viewing Access Logs

  1. Go to the Resolvers page.
  2. Click in the upper left corner and select the desired region and project.
  3. Click the Access Logs tab.
  4. In the access log list, locate the target access log and click View Log Details.

    On the displayed page, view the information about the log group and log stream.

  5. Click the name of the log stream and view its details.

    The following is an example log. For details about the fields in the log, see Table 1. The log format cannot be modified.

    {
        "content": "2024-07-02 09:28:00.304 baidu.com. A NOERROR TCP cnsouthwest2d _ 192.168.0.138 c1e159ce-ac25-4908-8e31-8ff73ad2f57d",
        "_resource_id": "c1e159ce-ac25-4908-8e31-8ff73ad2f57d",
        "_resource_name": "c1e159ce-ac25-4908-8e31-8ff73ad2f57d",
        "_service_type": "DNS",
        "category": "LTS",
        "collectTime": 1719883683977
    }
    Table 1 Fields in a DNS Resolver access log

    Field

    Description

    Value Description

    Example Value

    content

    DNS Resolver access logs

    String

    2024-07-02 09:28:00.304 baidu.com. A NOERROR TCP cnsouthwest2d _ 192.168.0.138 c1e159ce-ac25-4908-8e31-8ff73ad2f57d

    _resource_id

    Resource ID

    UUID

    95c2b814-99dc-939a-e811-ae84c61ea9ee

    _resource_name

    Resource name

    Name of the resource specified by the resource ID

    95c2b814-99dc-939a-e811-ae84c61ea9ee

    _service_type

    Service for which access logs are collected

    Fixed value: DNS

    DNS

    category

    Log category

    Fixed value: LTS

    LTS

    collectTime

    LTS log collection time

    Integer

    1704158708902

Configuring Log Transfer

If you want to analyze access logs later, transfer the logs to OBS for storage.

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. In the upper left corner of the page, click and choose Management & Governance > Log Tank Service.
  1. In the navigation pane on the left, choose Log Transfer.
  2. In the upper right corner of the Log Transfer page, click Configure Log Transfer.
    Figure 1 Configuring log transfer
  1. Configure the parameters. For details, see the Log Tank Service User Guide.

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