Configure logging levels

Purpose

Sets the logging level for a specified type of log file.

URI

To update the configuration details of a log file, use the Eclipse Amlen REST API POST method with the following Eclipse Amlen configuration URI:
http://<admin-endpoint-IP:Port>/ima/v1/configuration

Parameters

Provide log level configuration data in the payload of the POST method by using the following schema:

{     
  "<Log type>" : "MIN"|"MAX"|"NORMAL"      
}
Where:
  • Log type
    Specifies the type of log file on which you want to set the logging level. Log type can be one of the following values:
    • LogLevel
    • ConnectionLog
    • SecurityLog
    • AdminLog
    • MQConnectivityLog

Usage NotesĀ®

  • A logging level of MIN is the lowest logging level and includes only the most important entries.
  • A logging level of MAX is the highest logging level and includes all entries. At this level, all messages are recorded in the log files.
  • A logging level of NORMAL includes all important entries.

Related REST Administration APIs

Example

The following example shows setting the logging level of imaserver-admin.log to MAX:
curl -X POST -H 'Content-Type: application/json' -d  '{ "AdminLog": "MAX" }' http://127.0.0.1:9089/ima/v1/configuration/
The following shows an example response to the POST method.

{        
  "Version": "v1",
  "Code": "CWLNA6011",
  "Message": "The requested configuration change has completed successfully."
}