Logs:Set Log Levels

Search (SHIFT+S)



Set Log Levels

POST /logs/log-levels/

Update log levels


Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN
  • SYSTEM_MONITOR
  • SECURITY_ADMIN

Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
<log_level_set>
<node_id> Optional, A list of node ids to be updated. All the nodes in the cluster will be updated by default String 0-* Elements
<node_name> Optional, A list of node names to be updated. All the nodes in the cluster will be updated by default String 0-* Elements
<log_name> Optional, A list of service names to be updated with new log level. All the services will be updated by default String 0-* Elements
<severity> Required, An int indicating the new log level. Following values are valid: Integer Valid Values:
  •  0 (FATAL)
  •  1 (EMERG)
  •  2 (ALERT)
  •  3 (CRIT)
  •  4 (ERROR)
  •  5 (WARN)
  •  6 (NOTICE)
  •  7 (INFO)
  •  8 (DEBUG)
  •  9 (TRACE)
<expir_in_min> Optional, Expiration time in minutes Integer
<scope> Optional, log level scope String Valid Values:
  •  SCOPE_DEFAULT
  •  SCOPE_DEPENDENCY
</log_level_set>

Response Body

Server response indicating if the operation succeeds.

Notes: