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

Log Structuring Fields

Updated on 2023-11-29 GMT+08:00

Setting Log Structuring Fields

You can edit extracted fields after log structuring.

Table 1 Rules for configuring structured fields

Structuring Method

Field Name

Field Type Can Be Changed

Field Can Be Deleted

Regular expressions (auto generate)

User-defined.

The name must start with a letter and contain only letters and digits.

Yes

Yes

Regular expressions (manually enter)

  • User-defined.
  • Default names such as field1, field2, and field3 will be used for unnamed fields. You can modify these names.

Yes

Yes

JSON

Names are set automatically, but you can set aliases for fields.

Yes

Yes

Delimiter

Default names such as field1, field2, field3 are used. You can modify these names.

Yes

Yes

Nginx

Names are set based on Nginx configuration, but you can set aliases for fields.

Yes

Yes

ELB structuring template

Defined by ELB.

No

No

VPC structuring template

Defined by VPC.

No

No

CTS structuring template

Keys in JSON log events.

No

No

APIG structuring template

Defined by APIG.

No

No

DCS audit logs

Defined by DCS.

No

No

Tomcat

Defined by Tomcat.

No

No

Nginx

Defined by Nginx.

No

No

GAUSSV5 audit logs

Defined by GAUSSV5.

No

No

DDS audit logs

Defined by DDS.

No

No

DDS error logs

Defined by DDS.

No

No

DDS slow query logs

Defined by DDS.

No

No

CFW access control logs

Defined by CFW.

No

No

CFW attack logs

Defined by CFW.

No

No

CFW traffic logs

Defined by CFW.

No

No

MySQL error logs

Defined by MySQL.

No

No

MySQL slow query logs

Defined by MySQL.

No

No

PostgreSQL error logs

Defined by PostgreSQL.

No

No

SQL Server error logs

Defined by SQL Server.

No

No

GaussDB(for Redis) slow query logs

Defined by GaussDB(for Redis).

No

No

CDN

Defined by CDN.

No

No

SMN

Defined by SMN.

No

No

GaussDB_MySQL error logs

Defined by GaussDB_MySQL.

No

No

GaussDB_MySQL slow query logs

Defined by GaussDB_MySQL.

No

No

Enterprise Router

Defined by ER.

No

No

MySQL audit logs

Defined by MySQL.

No

No

GaussDB(for Cassandra) slow query logs

Defined by GaussDB(for Cassandra).

No

No

GaussDB(for Mongo) slow query logs

Defined by GaussDB(for Mongo).

No

No

GaussDB(for Mongo) error logs

Defined by GaussDB(for Mongo).

No

No

WAF access logs

Defined by WAF.

No

No

WAF attack logs

Defined by WAF.

No

No

DMS rebalancing logs

Defined by DMS.

No

No

CCE audit logs

Defined by CCE.

No

No

CCE event logs

Defined by CCE.

No

No

GaussDB(for Redis) audit logs

Defined by GaussDB(for Redis).

No

No

Custom templates

User-defined.

Yes

Yes

NOTE:

When you use regular expressions (manually entered), JSON, delimiters, Nginx, or custom templates to structure logs, field names:

  • Can contain only letters, digits, hyphens (-), underscores (_), and periods (.).
  • Cannot start with a period (.) or underscore (_) or end with a period (.).
  • Can contain 1 to 64 characters.

Setting Tag Fields

When you structure logs, you can configure tag fields, so you can use these fields to run SQL queries on the Visualization page.

  1. During field extraction, click the Tag Fields tab.
  2. Click Add Field.
  3. In the Field column, enter the name of the tag field, for example, hostIP.

    NOTE:

    If you configure tag fields for a structuring rule that was created before the function of tag fields was brought online, no example values will be shown with the tag fields.

  4. To add more fields, click Add Field.
  5. Click Save to save the settings.

    NOTE:
    • Tag fields can be the following system fields: category, clusterId, clusterName, containerName, hostIP, hostId, hostName, nameSpace, pathFile, and podName.
    • Tag fields cannot be the following system fields: groupName, logStream, lineNum, content, logContent, logContentSize, and collectTime.
    • You can configure both field extraction and tag fields during log structuring.

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