You are not logged in.

#1 2011-07-08 18:52:53

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

syswlog-ng not loggin anything

I've added the following to syslog-ng.conf

source net { udp(); };
destination remote { file("/var/log/remote/$FULLHOST"); };
log { source(net); destination(remote); };

I''v instructed my router to syslog to the server's IP address.

Yet, nothing is logged. I've read the documentation in Gentoo but it does not state anything else to configure.

What is missing?


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#2 2011-07-09 16:25:14

sskeirik
Member
Registered: 2011-03-13
Posts: 20

Re: syswlog-ng not loggin anything

Quick disclaimer: I know very little about syslog or your particular setup.

Just had a thought though. What if you have some sort of firewall issue? Perhaps your server is set to block that sort of traffic. Maybe you need to edit /etc/hosts.allow or something similar?

Offline

#3 2011-07-09 18:28:50

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: syswlog-ng not loggin anything

theking2,

I have done this a long time ago, so I don't remember the details, but this is what I have on my syslog.conf:

source s_udp { udp (ip(0.0.0.0) port(514)); };

destination df_udp {
        file ("/var/log/$HOST");
};


log {
        source(s_udp);
        destination (df_udp);
};

On the remote, a NAS, I execute:

syslogd -R 192.168.1.115 -l 5

You do need the "source s_udp { udp (ip(0.0.0.0) port(514)); }"

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

Board footer

Powered by FluxBB