Interconnecting with LTS and Querying Database Audit Logs
Scenarios
Log Tank Service (LTS) collects, analyzes, and stores logs. If you enable Upload Audit Logs to LTS, GaussDB audit logs will be uploaded to LTS and you can search for logs, monitor logs, download logs, and view real-time logs.
Precautions
- LTS is a whitelisted feature. To use this function, submit an application by choosing Service Tickets > Create Service Ticket in the upper right corner of the management console.
- Currently, this function is available only for centralized instances of version V2.0-2.1.0 or later.
- Audit logs record all requests sent to your DB instance and are stored in LTS.
- Toggling on or off this function will not be applied immediately. There is a delay of about 10 minutes.
- For details about how to enable or disable the audit log function, configure audit_enabled.
- For details about the parameters for controlling audit logs, see Audit Items.
- You will be billed for this function. For details, see LTS Pricing Details.
- After this function is enabled, audit policies you configured are reported to LTS by default.
Enabling Upload Audit Logs to LTS
- Log in to the management console.
- Click in the upper left corner and select a region and project.
- Click in the upper left corner of the page and choose .
- In the navigation pane on the left, choose Instances.
- Click the instance name to go to the Basic Information page.
- In the navigation pane on the left, click Audit Logs.
- Click next to Upload Audit Logs to LTS.
- In the displayed dialog box, configure Log Group and Log Stream.
Figure 1 Enabling Upload Audit Logs to LTS
If you enable this function for the first time, click View Log Groups to log in to the LTS console and configure log groups and log streams. For details, see Managing Log Groups and Managing Log Streams.
- Click OK.
After this function is enabled, audit logs will not be uploaded immediately to LTS. There is a delay of about 10 minutes. For details, see Viewing Real-Time Logs.
Disabling Upload Audit Logs to LTS
- Log in to the management console.
- Click in the upper left corner and select a region and project.
- Click in the upper left corner of the page and choose .
- In the navigation pane on the left, choose Instances.
- Click the instance name to go to the Basic Information page.
- In the navigation pane on the left, click Audit Logs.
- Click next to Upload Audit Logs to LTS.
- In the displayed dialog box, confirm the information.
Figure 2 Disabling Upload Audit Logs to LTS
- In the displayed dialog box, click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot