Chapter 4: System Logging
NOTE
This feature has software and/or firmware dependencies. See
Dependencies by Feature" on page 1
for more information.
To customize severity levels:
1.
Set the severity level for the desired log type (lunalogs,messages,cron,secure,boot). See
lunash:>
syslog severity set -logname
<logname>
-loglevel
<loglevel>
lunash:>syslog severity set -logname lunalogs -loglevel emergency
This command sets the severity level of lunalogs local log messages.
Only messages with the severity equal to or higher than the new
log level: "emergency" will be logged.
Stopping syslog:
[ OK
]
Starting syslog:
[ OK
]
Command Result : 0 (Success)
2.
Optionally, confirm the new setting (see
).
lunash:>
syslog show
Local Configured Log Levels:
----------------------------
lunalogs
emergency
messages
*
cron
notice
secure
*
boot
*
Note: '*' means all log levels.
3.
Repeat Step 1, specifying the severity level of each log type you wish to customize
(lunalogs,messages,cron,secure,boot).
Reading System Logs
You can search the current log rotation for recent events without exporting log files. Rotated logs must be
exported to a client workstation to be read. For a detailed guide to reading and interpreting system log
messages, see
"About the Monitoring Guide" on page 1
in the
Syslog and SNMP Monitoring Guide
. Syslog
format is in accordance with RFC 5424.
To search the current rotation of system logs:
Use
syslog tail
(see
). You can search the entire current log file, specify the number of
recent entries you want to see, or search for specific types of entries.
lunash:>
syslog tail -logname
<logname>
-entries
<#entries>
lunash:>syslog tail -logname lunalogs -entries 8
2017 Mar
1 14:27:54 local_host
local5 info
hsm[32081]: STC policy is set to "OFF" on partition
66331 : Unknown ResultCode value
2017 Mar
1 14:27:55 local_host
local5 info
hsm[32120]: STC policy is set to "OFF" on partition
66331 : Unknown ResultCode value
SafeNet Luna Network HSM 7.3 Appliance Administration Guide
007-013576-005 Rev. A 13 December 2019 Copyright 2001-2019 Thales
49