Cluster Log Management

Overview

Cluster logs are collected and sent to Log Tank Service (LTS). You can check or dump the collected cluster logs on LTS.

Currently, the following log types are supported:

  • CN logs

  • DN logs

  • OS messages logs

  • Audit logs

Note

  • Cluster log management depends on LTS.

  • Only 8.1.1.300 and later versions support cluster log management.

Enabling LTS

  1. Log in to the GaussDB(DWS) management console.

  2. Choose Clusters. All clusters are displayed by default.

  3. Click the name of the target cluster. Choose Logs.

    image1

  4. On the Logs tab, enable LTS. If LTS is enabled for the first time, the following dialog box will be displayed. Confirm the information and click Yes.

    image2

    Note

    • If LTS has been enabled and authorized to create an agency, no authorization is required when LTS is enabled again.

    • By default, only cloud accounts or users with Security Administrator permissions can query and create agencies. IAM users under an account do not have the permission to query or create agencies by default. Contact a user with that permission and complete the authorization on the current page.

  5. Check the LTS status.

    image3

Checking Cluster Logs

  1. Log in to the GaussDB(DWS) management console.

  2. Choose Clusters. All clusters are displayed by default.

  3. Click the name of the target cluster. Choose Logs.

  4. On the Logs tab, click View Log in the Operation column of a log type to go to the Log Tank Service (LTS) page and view logs.

    image4

Disabling LTS

  1. Log in to the GaussDB(DWS) management console.

  2. Choose Clusters. All clusters are displayed by default.

  3. Click the name of the target cluster. Choose Logs.

  4. Toggle off the LTS switch.

    image5

  5. Click OK in the dialog box.

    image6