For implementing a network syslog host, it is desirable to have messages
for each host on the network saved in a different file.
The syslogd shipped with RH7 doesn't provide this functionality, as far as
I can tell. I hacked it into the RH6.2 syslogd at one point, after finding
that syslog-ng hadn't yet implemented it.
Hm, not a bad idea.
Do you still have the patch around?
Probably, but it IIRC it wasn't shippable. It'll be archived at my old place of
work. I'll check for it.
Created attachment 4774 [details]
As I suspected - more of a local hack than something we can ship as-is. But I think the thing with the struct logfilerec list is how we need to go about it.
Good idea. I second that request.
There is an ability to specify hostnames as message filter parameters in FreeBSD syslogd (also see #29990 for my
port of another, similar FreeBSD feature).
This provides no direct mapping to /var/log/remote/$hostname, but it should be rather easily implemented on top of that
as you know the hostname already when you're doing that.
So, where do we go from here?
- Close the bug WONTFIX
- follow Pekka's idea
- adopt syslog-ng?
So we ship both rsyslog and syslog-ng in Fedora these days, with rsyslog the
default, and the first item in the rsyslog FAQ is "How to separate log files by
host name of sending device". So I suspect there is no point in keeping this
ancient ticket open.