Updated on 2024-08-03 GMT+08:00

Enabling or Disabling Log Reporting

Scenarios

If you enable log reporting for your GeminiDB Mongo instance, new logs generated for the instance will be uploaded to Log Tank Service (LTS).

Precautions

  • To use this function, you need to contact customer service to apply for required permissions.
  • You will be billed for enabling this function.
  • Ensure that there are available LTS log groups and log streams in the same region as your instance.

    For more information about log groups and log streams, see Log Management.

Enabling Log Reporting to LTS in Batches

  1. Log in to the management console.
  2. In the service list, choose Databases > GeminiDB Mongo API.
  3. In the navigation pane, choose Log Reporting.
  4. Select one or more instances and click Enable Log Reporting.
  5. Select an LTS log group and log stream and click OK.

    • After this function is enabled, audit logs record all requests sent to your DB instance and are stored in LTS.
    • This function does not take effect immediately. There is a delay of about 10 minutes.
    • You will be billed for enabling this function. For details, see LTS pricing details.
    • After this function is enabled, all audit policies are reported by default.
    • If Audit Policy is enabled, LTS reuses the audit policy set for your DB instance and you will also be billed for reporting audit logs to LTS. (Only after you disable Audit Policy, the fee will be terminated.)
    • If you enable audit log reporting to LTS for an instance with the Audit Policy toggle switch turned on, you can turn off this switch only when the instance status becomes available.
    Figure 1 Enabling log reporting

  6. To disable log reporting, select one or more instances and click Disable Log Reporting.
  7. In the displayed dialog box, click OK.

    Figure 2 Disabling log reporting