部署rsyslog服务器 配置文件如下 123456 $MaxMessageSize 64k$template detail,"%syslogpriority-text% %syslogfacility-text% %timegenerated% %hostname% %syslogtag% %msg%n"$template switch,"/data/logs/yz-switch/yz-switch-%$YEAR%%$MONTH%%$DAY%.log":hostname, contains, "-rsyslog-net" ~*.* ?switch;detail 配置交换机 1234 info-center logbuffer size 1024info-center loghost source M-GigabitEthernet0/0/0info-center loghost vpn-instance mgt_vrf 192.168.2.113 facility local6 ## 192.168.2.113是rsyslog地址info-center source SHELL logbuffer deny 赞微海报分享
近期评论