how to configure syslog to forward some types of messages to remote?
Tom Chen
chentom60 at hotmail.com
Thu Dec 29 02:52:50 UTC 2016
Hello,
I am new to busybox syslog, can someone help me to configure? My version of busybox is 1.22.1.
I need to forward some log messages (local7 only) to a remote server at 192.168.254.60. Here is my syslog.conf on the host:
# cat /etc/syslog.conf
# All logging goes to the main log too, regardless of other routing
*.* /var/log/messages
local7.* @192.168.254.60
local7.* /var/log/userlog
Here is how I start syslogd:
# syslogd -m 0 -s 2048 -b 5 -D -L
# klogd
However, there is no local7 message sent to remote, but I can see them in local /var/log/userlog. But if I use -R 192.168.254.60 to start syslogd, then remote server receives all types of log messages, not just local7.
Can someone help me to figure out how to configure to be able to forward local7 logs to remote and save to local as well?
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20161229/bdd1f396/attachment.html>
More information about the busybox
mailing list