Updated on 2024-09-23 GMT+08:00

Downloading MRS Cluster Logs

Manager allows you to export logs from all instances of each service in batches, eliminating the need to manually log in to individual nodes to obtain the logs.

Downloading MRS Cluster Logs (MRS 3.x or Later)

  1. Log in to FusionInsight Manager.
  2. Choose O&M > Log > Download.
  3. Select a log download range.

    1. Service: Click and select a service.
    2. Host: Enter IP addresses of the hosts where the service is deployed. You can also click to select hosts.
    3. Click in the upper right corner and set Start Time and End Time.

  4. Click Download.

    The downloaded log package contains the topology information of the start time and end time, helping you quickly find the log you need.

    The topology file is named in the format of topo_<Topology structure change time>.txt. The file contains the node IP address, host name, and service instances that reside on the node. (OMS nodes are identified by Manager:Manager.)

    Example:

    192.168.204.124|suse-124|DBService:DBServer;KrbClient:KerberosClient;LdapClient:SlapdClient;LdapServer:SlapdServer;Manager:Manager;meta:meta

Downloading MRS Cluster Logs (Versions Earlier Than MRS 3.x)

  • You have obtained the access key ID (AK) and secret access key (SK) of the account.
  • A parallel file system has been created in OBS.
  1. On MRS Manager, click System.
  2. Click Export Log under Maintenance.
  3. Select a service for Service. Set Host to the IP address of the host where the service is deployed. Select the corresponding time for Start Time and End Time.
  4. In Export To, select a path for storing logs. This parameter is available only for clusters with Kerberos authentication enabled.

    • Local PC: log files are saved to the local environment. Go to 8.
    • OBS: logs are saved to OBS. This is the default option. Go to 5.

  5. Set OBS Path to the OBS path for storing service log files.

    Enter a full path that does not start with a slash (/) and is no more than 900 bytes. The system will automatically create the path if it does not exist.

  6. In Bucket, enter the name of the created OBS file system.
  7. Set AK and SK to the user's access key ID and secret access key.
  8. Click OK.