Getting logs from management services

You can retrieve logs from the services running on the management node using the REST API. You can pull logs from all public services or specify specific services and use query parameters to better define the return results.

Before you begin

Steps

  1. Open the REST API UI on the management node: https://[management node IP]/mnode
  2. Click Authorize or any lock icon and complete the following:
    1. Enter the cluster user name and password.
    2. Enter the client ID as mnode-client if the value is not already populated.
    3. Copy the token URL string and paste it into another browser tab to initiate a token request.
    4. Click Authorize to begin a session.
  3. Click GET /logs.
  4. Click Try it out.
  5. Specify the following parameters:
    • Lines: Enter the number of lines you want the log to return. This parameter is an integer that defaults to 1000.
      Tip: Avoid requesting the entire history of log content by setting Lines to 0.
    • service-name: Enter a service name.
      Tip: Use the GET /services command to list services on the management node.
    • type: Select the specific log type to pull:
      1. service: Pulls regular public running services. This is the default and most common option.
      2. syslog: Pulls all syslog from the host machine.
      3. all: Pulls from all public services and syslogs.
    • since: Adds a ISO-8601 timestamp for the service logs starting point.
      Tip: Use of a reasonable since parameter when gathering logs of wider timespans.
    • archived: Adds archived files to the log request.
  6. Click Execute.