On Wed, Jun 17, 2015 at 12:53:53AM -0700, Ansis Atteka wrote: > This patch helps to address two issues on Ubuntu 15.04 (and most likely > other Linux distributions) when rsyslog daemon is configured to relay > log messages from OVS to a remote log collector: > > 1. libc syslog() function adds unwanted prefix to every message before > sending it over /dev/log Unix domain socket; and > > 2. rsyslogd daemon that comes with Ubuntu 15.04 is too old and > does not allow to specify custom syslog message parsers when > it received message over Unix domain socket. > > Solution to those two issues would be to use --syslog-method=udp:127.0.0.1:514 > argument when starting OVS. > > Signed-Off-By: Ansis Atteka <[email protected]>
It seems like syslog_libc_create() and syslog_direct_create() might more usefully return a pointer to the inner syslogger structure, so that the caller does not have to blindly cast. We've previously had a request to make it possible to turn off local syslogging, only syslogging to the --syslog-target address. This could now be done easily by adding a "none" --syslog-method that just throws away log messages. The existing send_to_syslog_fd() has a fallback to handle messages that are too long to send. I guess that's a real corner case that would only come up for messages longer than about 64 kB, but it might still be worth including in syslog_direct_log(). While we're at it, is it possible to also use the new syslog infrastructure for --syslog-target? I guess that the syntax would be compatible, if we assumed that anything that started with a digit was a UDP target. _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
