System information

Manual:System/Log
52
Note: print command accepts several parameters that allows to detect new log entries, print only necessary
messages and so on. For more information about parameters refer to scripting manual
For example following command will print all log messages where one of the topics is info and
will detect new log entries until Ctrl+C is pressed
[admin@ZalaisKapots] /log > print follow where topics~".info"
12:52:24 script,info hello from script
-- Ctrl-C to quit.
If print is in follow mode you can hit 'space' on keyboard to insert separator:
[admin@ZalaisKapots] /log > print follow where topics~".info"
12:52:24 script,info hello from script
= = = = = = = = = = = = = = = = = = = = = = = = = = =
-- Ctrl-C to quit.
Logging configuration
Sub-menu level: /system logging
Property Description
action (name; Default: memory) specifies one of the system default actions or user
specified action listed in actions menu
prefix (string; Default: ) prefix added at the beginning of log messages
topics (account, async, backup, bgp, calc, critical, ddns, debug, dhcp, e-mail, error,
event, firewall, gsm, hotspot, igmp-proxy, info, ipsec, iscsi, isdn, l2tp, ldp, manager,
mme, mpls, ntp, ospf, ovpn, packet, pim, ppp, pppoe, pptp, radius, radvd, raw, read,
rip, route, rsvp, script, sertcp, state, store, system, telephony, tftp, timer, ups, warning,
watchdog, web-proxy, wireless, write; Default: info)
log all messages that falls into specified topic or list of
topics.
'!' character can be used before topic to exclude messages
falling under this topic. For example, we want to log NTP
debug info without too much details:
/system logging add
topics=ntp,debug,!packet
Actions
Sub-menu level: /system logging action
Property Description
bsd-syslog (yes|no; Default: ) whether to use bsd-syslog as defined in RFC 3164
disk-file-count (integer [1..65535]; Default: 2) specifies number of files used to store log messages, applicable
only if action=disk
disk-file-name (string; Default: log) name of the file used to store log messages, applicable only if
action=disk
disk-lines-per-file (integer [1..65535]; Default: 100) specifies maximum size of file in lines, applicable only if
action=disk
disk-stop-on-full (yes|no; Default: no) whether to stop to save log messages to disk after the specified
disk-lines-per-file and disk-file-count number is reached,
applicable only if action=disk