On 28.07.2015 15:24, Gregory Edigarov wrote:
On 07/28/2015 03:20 PM, Gregory Edigarov wrote:
On 07/28/2015 02:41 PM, Atanas Vladimirov wrote:
Hi,
I tried the new feature of syslogd to collect log messages from other
syslog capable devices (in this case an OpenWRT router).
I red syslog.conf many times, but I can't figure it why it doesn't
work.
[ns]~$ cat /etc/syslog.conf
# $OpenBSD: syslog.conf,v 1.17 2005/05/25 07:35:38 david Exp $
#
+wdr4900.bsdbg.net
*.* /var/log/w4900
move the above 2 lines to the end of your file.
remove next line:
+*
next, add
192.168.1.18 wdr4900
to /etc/hosts
also, change the syslog rule as:
+ wdr4900
*.* /var/log/w4900
and things will work
Thanks for the hint.
Actually I modified syslog.conf to begin with
++wdr4900
*.* /var/log/w4900
+*
because I wanted all records from OpenWRT router to be in one place
(/var/log/w4900).
It seems that the real problem/misunderstanding was the part with
/etc/hosts.
Why syslogd doesn't use /etc/resolve.conf?
This box is configured as recursive dns server (unbound).