This topic describes how to manage Hologres instances and use SQL audit logs of Hologres instances to show the analysis results and visual reports for the SQL audit logs of Hologres instances.
Procedure
Log on to the CloudMonitor console.
In the left-side navigation pane, choose
. The CloudLens for Hologres page appears.Data Import Management
In the left-side navigation pane, click
and then click the Hologres Instance tab.On the Hologres Instance tab, view the basic information including Instances, Data Collection Instance, and Region. In the Access Overview section, the Hologres instances are summarized to facilitate resource auditing and log collection management.
In the instance list in the lower part, view the details in the Production Instance ID/Name, Region, Instance Type, Version, and SQL Audit Log columns.
Click the Destination Logstores tab. On the Destination Logstores tab, view the following information about the destination Logstores for Hologres: Destination, Region, Data Retention Period (Days), Collected Instance, and Type.
Query and Analysis
In the left-side navigation pane, click
Select the ID of the Hologres instance and then query and analyze the SQL audit logs.
NoteFor more information about how to query and analyze logs, see Query and analyze logs.
Report Center
In the left-side navigation pane, click
and then click the SQL Audit Overview tab.Select the ID of the Hologres instance. On the right side of the page, set the time for SQL audit log analysis. You can also manually refresh and reset the time. You can click Save As to save the log. The report is displayed in full-screen mode on the page.
Set multiple conditions to filter audit logs and show data reports, such as Instance ID, Database, Account, Type, Client IP, and Status.
Analyze the SQL audit logs and collect statistics. The statistics are displayed in charts.
Statistics section: displays metrics such as Number of Users, Number of Audit Logs, Number of Clients, Execution Failure, and Number of Operated Databases.
Top data trend analysis section: displays charts for metrics such as Top 5 Users, Top 5 Executed Commands, and Top 5 Clients.
Quantity trend analysis section: displays charts for metrics such as Trend of Log Quantity and Trend of Logged-on Clients.
Audit Log Details: displays information such as Instance ID, Username, Authentication Information, Client IP, Collection Time, Database, Type, Status, Query, Start Time, End Time, and Duration.