Wednesday, October 16, 2024

华为S5720交换机把syslog输出到日志主机

# 启用信息管理功能
info-center enable

# 指定模块、通道名称、日志级别 (default指所有模块)
info-center source default channel 2 log level informational

# 指定日志输出源接口
info-center loghost source Vlanif1

# 指定要接收的日志主机,时间戳使用本地时间(默认为UTC)
info-center loghost 10.77.11.38 local-time

# 连续重复日志的统计抑制(可选)
info-center statistic-suppress enable 

参考:

https://support.huawei.com/enterprise/zh/doc/EDOC1100333362/336bd2ec
https://zhuanlan.zhihu.com/p/282797056

No comments:

Post a Comment

华为S5720交换机把syslog输出到日志主机

# 启用信息管理功能 info-center enable # 指定模块、通道名称、日志级别 (default指所有模块) info-center source default channel 2 log level informational # 指定日志输出源接口 info-...