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 GET /logs.
  3. Click Try it out.
  4. Specify the following parameters:
    • Lines: Enter the number of lines you want the log to return. This parameter is an integer that defaults to 100.
    • 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.
    • archived: Adds archived files to the log request.
  5. Click Execute.