set systemlogs
Syntax
set systemlogs <option>
Description
Set the log level of services.
Options
| log-level |
Set the log level of services. Add the name of the service or services separated by a comma and specify a log level
to the command. For example, |
Required Privilege Level
CLI Administrator
Sample Input
set systemlogs log-level
<service name> <log
level>$ set systemlogs log-level policy-mgmt warn
2025-01-08 10:39:45 UTC
{"level":"info","msg":"ConfigureLogLevel : Request message received: ServicesLogLevel:{ServiceName:\"policy-mgmt\" LogLevel:\"warn\"}\n","time":"2025-01-08T10:39:47Z","type":"APPLOG"}
{"level":"info","msg":"Cache is empty, populating it with data before updating","time":"2025-01-08T10:39:47Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-api-gateway","time":"2025-01-08T10:39:47Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-cache","time":"2025-01-08T10:39:47Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-generic-db","time":"2025-01-08T10:39:47Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-iam","time":"2025-01-08T10:39:47Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-la-message-bus","time":"2025-01-08T10:39:47Z","traceid":"NO-REQUESTID","type":"APPLOG"}
......set systemlogs log-level <service name> <log
level>$ set systemlogs log-level logapiserver error
2025-01-08 10:45:01 UTC
{"level":"info","msg":"ConfigureLogLevel : Request message received: ServicesLogLevel:{ServiceName:\"logapiserver\" LogLevel:\"error\"}\n","time":"2025-01-08T10:45:01Z","type":"APPLOG"}
{"level":"info","msg":"Cache is empty, populating it with data before updating","time":"2025-01-08T10:45:01Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-api-gateway","time":"2025-01-08T10:45:01Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-cache","time":"2025-01-08T10:45:01Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-generic-db","time":"2025-01-08T10:45:01Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-iam","time":"2025-01-08T10:45:01Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-la-message-bus","time":"2025-01-08T10:45:01Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-message-bus","time":"2025-01-08T10:45:01Z","traceid":"NO-REQUESTID","type":"APPLOG"}
{"level":"info","msg":"identifyservicenamespace namespace atom-storage","time":"2025-01-08T10:45:01Z","traceid":"NO-REQUESTID","type":"APPLOG"}
.......Release Information
Command introduced in Juniper Security Director Release 24.4.1.