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.
-
Your cluster version is running NetApp Element software 11.3 or later.
-
You have deployed a management node running version 11.3 or later.
-
Open the REST API UI on the management node.
-
Beginning with management services 2.21.61:
https://<ManagementNodeIP>/mnode/4/
-
For management services 2.20.69 or earlier:
https://<ManagementNodeIP>/mnode
-
-
Select Authorize or any lock icon and complete the following:
-
Enter the cluster user name and password.
-
Enter the client ID as mnode-client if the value is not already populated.
-
Select Authorize to begin a session.
-
Close the window.
-
-
Select GET /logs.
-
Select Try it out.
-
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.Avoid requesting the entire history of log content by setting Lines to 0. -
since
: Adds a ISO-8601 timestamp for the service logs starting point.Use a reasonable since
parameter when gathering logs of wider timespans. -
service-name
: Enter a service name.Use the GET /services
command to list services on the management node. -
stopped
: Set totrue
to retrieve logs from stopped services.
-
-
Select Execute.
-
From the response body, select Download to save the log output.