syslog tail
Display the last entries of the syslog. If no number is included, the command displays the entire syslog.
User access
admin, pseoperator
Syntax
syslog tail -logname <logname> [-entries <logentries>] [-search <string>]
Argument(s) | Shortcut | Description |
---|---|---|
-entries <logentries> | -e |
Specifies the number of entries to display. If this parameter is not specified, the entire log is displayed. Enter this keyword followed by the number of log entries you want to display. Range: 0-2147483647 |
-logname <logname> | -l |
Species the name of the log you want to display. Enter this keyword followed by the log name. Valid values: messages, secure |
-search <string> | -s |
Search the log for the specified string. Enter this keyword followed by the string you want to find. |
Example
psesh:>syslog tail -logname messages -entries 10
Aug 5 12:00:17 PSe-II snmpd[3963]: Connection from UDP: [172.16.21.19]:62386->[172.20.11.150] Aug 5 12:00:18 PSe-II snmpd[3963]: Connection from UDP: [172.16.21.19]:62386->[172.20.11.150] Aug 5 12:04:16 PSe-II psesh [4341]: info : 0 : pssh user login : admin : 172.16.181.182/51177 Aug 5 12:04:28 PSe-II psesh [4341]: info : 0 : Command: help syslog : admin : 172.16.181.182/51177 Aug 5 12:06:36 PSe-II psesh [4341]: info : 0 : Command: help syslog tar : admin : 172.16.181.182/51177 Aug 5 12:07:32 PSe-II psesh [4341]: info : 0 : Command: syslog tail : admin : 172.16.181.182/51177 Aug 5 12:09:55 PSe-II psesh [4341]: info : 0 : Command: syslog tarlogs : admin : 172.16.181.182/51177 Aug 5 12:09:57 PSe-II rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="927" x-info="http://www.rsyslog.com"] rsyslogd was HUPed Aug 5 12:14:59 PSe-II psesh [4341]: info : 0 : Command: syslog tail -logname messages -entries 10 : admin : 172.16.181.182/51177 Aug 5 12:15:16 PSe-II psesh [4341]: info : 0 : Command: syslog tail -logname messages -entries 10 : admin : 172.16.181.182/51177
Command Result : 0 (Success)