Scenario: An engineer or administrator needs to integrate a newly acquired Junos OS Evolved device into an existing monitoring systems. Below is a classic Junos syslog message example from an MX480 with the hostname test-mx480.
labroot@test-mx480> show log messages
Dec 19 13:22:41.959 test-mx480 chassisd[5290]: CHASSISD_IFDEV_DETACH_FPC: ifdev_detach_fpc(0) Dec 19 13:23:22.900 test-mx480 fpc2 Ukern event counter Sock_tx init delayed
labroot@test-ptx10008-re0> show log messages May 25 18:41:05.375 test-ptx10008-re0 mgd[16201]: UI_CHILD_STATUS: Cleanup child '/usr/sbin/dot1xd', PID 21322, status 0 May 25 18:42:34.632 test-ptx10008-fpc0 evo-cda-bt[14299]: Register bt.igp_misc.debug.hdr_length_cnt not found May 25 18:42:34.753 test-ptx10008-fpc1 evo-cda-bt[14427]: HBM: hbm_gf_register_inst May 25 18:47:14.498 test-ptx10008-re0 ehmd[5598]: SYSTEM_APP_READY: App is ready re0-ehmd
A new command knob ' alternate-format ' has been added in Junos OS Evolved 20.4R2-EVO to overcome the described problem.
alternate-format
labroot@test-ptx10008
-re0# set system syslog ? Possible completions: allow-duplicates Do not suppress the repeated message for all targets alternate-format Append node name with daemon name instead of hostname(default) in the log entries + apply-groups Groups from which to inherit configuration data + apply-groups-except Don't inherit configuration data from these groups > archive Archive file information ...
labroot@test-ptx10008-re0> show log messages May 27 16:25:28.695 test-ptx10008 re0- mgd[3876]: UI_DBASE_LOGOUT_EVENT: User 'labroot' exiting configuration mode May 27 16:25:28.439 test-ptx10008 re1- systemd-logind[7682]: Removed session c16. May 27 16:26:17.080 test-ptx10008 fpc0- evo-cda-bt[14300]: [Warn] CDA QPoll: activOrReset:0 but needReset:1 for pfeIdx:0 pport:0 May 27 16:26:45.080 test-ptx10008 fpc1- evo-cda-bt[14541]: [Warn] CDA QPoll: activOrReset:0 but needReset:1 for pfeIdx:1 pport:0
2021-10-18: initial publication