show logging ([
<
process-name
>
] [-l lines] | [-f])
- Displays the all currently stored log messages
- Example:
admin@SONiC:~$ show logging
- Optionally, you can specify a process name in order to display only log messages mentioning that process
- Example:
admin@SONiC:~$ show logging sensord
- Optionally, you can specify a number of lines to display using the
-l' or
--lines` option. Only the most recent N lines will be displayed. Also note that this option can be combined with a process name. - Examples:
admin@SONiC:~$ show logging --lines 50
admin@SONiC:~$ show logging sensord --lines 50
- Optionally, you can follow the log live as entries are written to it by specifying the
-f
or--follow
flag - Example:
admin@SONiC:~$ show logging --follow