One issue with large scale deployment of Linux is the need to
configure each client. It would be easier if the clients were able to
automatically derive their configuration using network services. This
is successfully done with MS Active directory, where it uses DNS to
locate the LDAP servers, and then uses the LDAP rootDSE to figure out
the LDAP base. The DNS feature is using the mechanism described in
RFC 2782 to find servies.
It would be great if rsyslog could locate the local syslog servers
using the same mechanism. This one-liner show how the SRV record at
_syslog._udp can be used to locate the syslog servers:
syslog_servers=$(host -N 2 -t srv _syslog._udp | rev | awk '/VRS/ {print $1}' | cut -d. -f2- | rev)
Please implement a way to enable this in rsyslog, preferably using
debconf preseeding to allow it to be set automatically at install
time.
Happy hacking,
--
Petter Reinholdtsen
An alternative might be to support the log-servers DHCP option. See #489376 for a discussion about this. I tried to find out if the DHCP option is supported by rsyslog, but did not succeed. This require modifications to the /etc/dhcp3/dhclient.conf file to make sure the client request the option from the DHCP server. Happy hacking,
Petter Reinholdtsen wrote: Looks interesting. I don't have access to such a setup so I can't really implement and test such functionality. So, patches are welcome. Cheers, Michael
Hi Petter! This is an old bug report which got stale. If you still want to see this feature implemented, please raise this upstream at https://github.com/rsyslog/rsyslog/ I don't think there is a lot of value to keep this feature request open downsteam, so I'm closing it now. If you file such an upstream feature request, please let me know. In this case, we can reopen the Debian bug report to track the progress. Michael
[Michael Biebl] Done.