Set the debug log level for LSF daemon log files (POST)
Description
URL |
scheme://host:port/platform/ws/lsflogs/debug |
|
Description |
Temporarily sets the message log level for LSF daemons to include debugging messages in log files. If you only specify the daemon name without any additional options, the default log level used is LOG_DEBUG, no additional classes are logged(LC_NONE), and the message log level is set to include debugging messages for the daemon running on the management host. The message log level you set will only be in effect from the time you set it until you turn it off or the daemon stops running, whichever is sooner. If the daemon is restarted, its message log level is reset back to the value of the parameter LSF_LOG_MASK defined in the LSF configuration file lsf.conf. |
|
HTTP Method |
POST |
|
Parameters |
Name | Description |
daemon |
Required. Specify the LSF daemon for which to set the log level. Valid values:
|
|
loglevel |
Optional. Specify the level of detail to include in debugging messages. The higher the number, the more detail that is logged. Higher levels include all lower levels. For example, LOG_DEBUG3 includes LOG_DEBUG2, LOG_DEBUG1, and LOG_DEBUG levels. Possible values:
|
|
classnames |
Optional. Specify the software classes for which to log debug messages. Separate multiple class names with a comma(,). Valid values:
|
|
hostname |
Optional. Sets debug messages for the daemon running on the specified host. Specify a valid host name in the cluster. To get a list of hosts in the cluster, use the API: /platform/ws/hosts |
Request
Request-Method |
POST |
|
Request-URI |
/platform/ws/lsflogs/debug | |
Request-Header |
Name | Value |
Accept |
application/xml or application/json |
|
Message-body |
loglevel =%s ; classnames=%s; hostname=%s; daemon=%s |
Response
Response-Code |
|
|
Response-Header |
Name | Value |
Content-Type |
application/xml or application/json |
|
Location (Only when response code is 303) |
A URI to the LSF daemon log file for which the debug message level was set. |
|
Message-body |
Failure Message |
If not successful, returns an error message. For additional information, refer to the schema file ./schemas/error/error.xsd.
|
Example: Set the LIM daemon log level to debug on the management host
# Request
POST /platform/ws/lsflogs/debug HTTP/1.1
Host: www.example.org
Authorization: Basic d2VsaXU6bGV0bWVpbg==
# Response
303 See Other
Location: http://www.example.org/platform/ws/lsflogs/lim.log.hostname
Related APIs
- Get a list of hosts: /platform/ws/hosts