Viewing the logging level by using REST Administration APIs

System administrators can get the logging level of an Eclipse Amlen log by using the Eclipse AmlenREST Administration APIs Eclipse AmlenREST Administration APIs.

You can use the Eclipse Amlen REST API GET method to view the logging level of an Eclipse Amlen log.
To display the logging level of an Eclipse Amlen log, use the Eclipse Amlen REST API GET method with the following URI:

http://<admin-endpoint-IP:Port>/ima/v1/configuration/<LogType>

Where
  • Log type
    Specifies the type of log file. Log type can be one of the following values:
    • LogLevel
    • ConnectionLog
    • SecurityLog
    • AdminLog
    • MQConnectivityLog

The following example uses a GET method to display the logging level of imaserver-default.log by using cURL:

curl -X GET http://127.0.0.1:9089/ima/v1/configuration/LogLevel

An example response to the GET method:


{
  "Version": "v1",
  "LogLevel": "MAX"
}

The following example uses a GET method to display the logging level of imaserver-connection.log by using cURL:

curl -X GET http://127.0.0.1:9089/ima/v1/configuration/ConnectionLog

An example response to the GET method:


{
  "Version": "v1",
  "ConnectionLog": "NORMAL"
}