Syslog Configuration on Huawei Router

Here’s a syslog configuration examples for Huawei Routers
Remote Syslog Server IP = 10.50.50.50
Pre-configured:
sysname <device hostname>
Syslog Configuration:
1. Enable the logging functionality
info-center enable
2. Configure the channel to send logs to the remote syslog server
info-center channel 6 name <channel name>
info-center source <source> channel <channel name> trap level <level> debug level <debug level>
info-center source <source> channel <channel name> log level <notification | warning>
3. Configure the source interface of the logging
info-center loghost source <source interface>
4. Configure the remote syslog IP where to send logs
info-center loghost <syslog IP> channel loghost facility <localnum>
Optional:
info-center timestamp log date precision-time millisecond
info-center logbuffer channel <channel> size <value>
Sample Output:
info-center channel 6 name freenetworklog
info-center source default channel freenetworklog log level notification
info-center source default channel freenetworklog trap level error debug level informational
info-center loghost source LoopBack0
info-center loghost 10.50.50.50 channel loghost facility local2
info-center timestamp log date precision-time millisecond
info-center logbuffer channel  freenetworklog size 1024

Be First to Comment

Leave a Reply

Your email address will not be published.