Filter messages that belong to the interactive-commands facility, directing those that include the string configure to the terminal of the root user:
- [edit system syslog]
- user root {
- interactive-commands any;
- match ".*configure.*";
- }
Messages like the following appear on the root user’s terminal when a user issues a configure command to enter configuration mode:
-
timestamp router-name mgd[PID]: UI_CMDLINE_READ_LINE: User 'user', command 'configure private'
Filter messages that belong to the daemon facility and have severity error or higher, directing them
to the file /var/log/process-errors. Omit messages generated by the SNMP process (snmpd), instead directing
them to the file /var/log/snmpd-errors:
- [edit system syslog]
- file process-errors {
- daemon error;
- match "!(.*snmpd.*)";
- }
- file snmpd-errors {
- daemon error;
- match ".*snmpd.*";
- }