set syslog enable
set syslog config "172.16.86.102"
set syslog config "172.16.86.102" facilities local3 local3
set syslog src-interface bgroup0
注意:
tcp选项不能够选,因为syslog默认是使用udp协议进行传输的,如果选用了tcp,结果就是无法走tcp传送log到syslog服务器,搞了好久才发现这个问题,如下Juniper Log
system-notification-00019: Syslog has been enabled. (2013-04-25 18:11:41)
system-notification-00019: Syslog server 172.16.86.102 host port number has been changed to 514 (2013-04-25 18:11:41)
system-notification-00019: Syslog facility for 172.16.86.102 has been changed to local3 (2013-04-25 18:11:41)
system-notification-00019: Syslog security facility for 172.16.86.102 has been changed to local3 (2013-04-25 18:11:41)
system-notification-00019: Syslog has been disabled. (2013-04-25 18:11:41)
system-notification-00019: All syslog servers were removed. (2013-04-25 18:11:41)
system-notification-00019: Syslog server 172.16.86.102 was added. (2013-04-25 18:11:41)
system-notification-00019: Syslog has been enabled. (2013-04-25 18:11:40)
system-notification-00019: Transport protocol for syslog server 172.16.86.102 was changed to udp (2013-04-25 18:11:40)