tencent cloud

TencentDB for MariaDB

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Strengths
Use Cases
System Architecture
Instance Types
Instance Architecture
TDSQL Edition
Database Version
Purchase Guide
Billing Overview
Pricing
Refund
Payment Overdue
Upgrade Pricing
Backup Space Billing
Getting Started
Creating Instance
Managing Account
Accessing Instance
Operation Guide
Precautions
Instance Management
Disaster Recovery Read-Only Instance
Account Management
Read/Write Separation
Changing Networks
Backup and Rollback
Migrating Data
Database Sync(Legacy)
Security Management
Monitoring and Alarms
Killing Threads
Parameter Templates and Settings
Database Audit
Practical Tutorial
Programming and Usage Specification
Programming and Usage Specification of Distributed Version
Using Hotspot Update for Flash Sales
Security White Paper
Platform Security Features
Tenant Security Features
Development Guide
Functional Limitations
Performance Test
Intra-city Active-Active Solution
Binlog Consumption Format
Slow Query Analysis
Database Audit
Syntax Supported
API Documentation
History
Introduction
API Category
Making API Requests
Security Group APIs
Other APIs
Account APIs
Parameter Management APIs
Monitoring Management APIs
Instance Management APIs
Backup and Restoration APIs
Data Types
Error Codes
FAQs
Product
Account Login
Features
Performance
Backup
Ops
Disk Overuse
IO Metric Exception
General References
Standards and Certification
Main Specification Performance Description
Performance Comparison Data for Strong Sync
Glossary

Viewing Audit Logs

PDF
Focus Mode
Font Size
Last updated: 2024-01-11 15:28:37

Viewing Logs

1. Log in to the TencentDB for MariaDB console, select Database Audit on the left sidebar, select a region at the top, and click the Audit Log tab.
2. In the audit instance section on the Audit Log tab, select a database instance with audit enabled to view its SQL audit logs. Or, on the Audit Instance tab, click an instance ID to enter the Audit Log tab and view audit logs.

Tool list


Click the time box and select a time period to view the audit results in the selected time period.
Note:
You can select any time period with data for search. Up to the first 60,000 eligible records can be displayed.
You can search by key tag to view audit results. Common key tags include SQL command, client IP, database name, database account, execution time, affected rows, and returned rows.
When entering multiple key tags in the text box for search, you can separate them by pressing Enter.
You can filter IP addresses by using the wildcard "". For example, if you enter "client IP: 10.0.0.0", IP addresses that start with "10.0.0.0" will be searched.

Log list

The Returned Rows field represents the specific number of rows returned by executing the SQL command, which is mainly used to determine the impact of SELECT commands.
The Affected Rows field represents the specific number of rows modified by executing the SQL command, which is mainly used to determine the impact of rewrite commands.

Audit Log Download

You can click the following icon on the Audit Log tab in the TencentDB for MariaDB console to obtain and view the complete SQL audit log.


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback