方法步骤:推送交换机syslog到日志服务器;其他设备类似操作;
配置交换机日志推送到日志主机: eg:日志主机IP地址:10.10.10.1
system-view
info-center channel 6 name loghost(名称随意) 此条可省略;
info-center source default channel loghost(名称和上面对应) log state on
info-center loghost source *******
info-center loghost 10.10.10.1 channel loghost1
commit
————————————————————————————————
释义
#进入用户视图
system-view
#指定发送消息基本,表示从0-7都发送
info-center source default channel 2 log level debugging
#指定从哪个接口发送
info-center loghost source *******
#指定远程syslog服务器ip
info-center loghost 10.10.10.1
————————————————