[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: how to configure syslog to forward some types of messages to remote?
From: Tom Chen <chentom60 () hotmail ! com>
Date: 2016-12-29 2:52:50
Message-ID: DM3PR19MB0892FF8996B087E5F7ABB8CCBF6B0 () DM3PR19MB0892 ! namprd19 ! prod ! outlook ! com
[Download RAW message or body]
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 l=
ocal /var/log/userlog. But if I use -R 192.168.254.60 to start syslogd, the=
n 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 lo=
cal7 logs to remote and save to local as well?
Tom
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} \
--></style> </head>
<body dir="ltr">
<div id="divtagdefaultwrapper" \
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" \
dir="ltr"> <p>Hello,</p>
<p><br>
</p>
<p>I am new to busybox syslog, can someone help me to configure? My version of \
busybox is 1.22.1.</p> <p><br>
</p>
<p>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:</p> <p></p>
<div><br>
</div>
<div># cat /etc/syslog.conf </div>
<div># All logging goes to the main log too, regardless of other routing</div>
<div>*.* /var/log/messages</div>
<div><br>
</div>
<div>local7.*<span style="font-size: 12pt;"> @192.168.254.60</span><br>
</div>
<div>local7.* /var/log/userlog</div>
<br>
<p></p>
<p>Here is how I start syslogd:</p>
<p><span># syslogd -m 0 -s 2048 -b 5 -D -L</span><br>
</p>
<p><span># klogd</span></p>
<p><br>
</p>
<p>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. </p> <p><br>
</p>
<p>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?</p> <p><br>
</p>
<p>Tom</p>
<p><br>
</p>
</div>
</body>
</html>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
--===============4122512717262085694==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic