[ovs-git] [openvswitch/ovs] fe089c: vlog: abstract out interface to syslog daemon

GitHub noreply at github.com
Sat Jun 27 19:55:57 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: fe089c0d1e180c37a89167728c7cb5ac31867f23
      https://github.com/openvswitch/ovs/commit/fe089c0d1e180c37a89167728c7cb5ac31867f23
  Author: Ansis Atteka <aatteka at nicira.com>
  Date:   2015-06-27 (Sat, 27 Jun 2015)

  Changed paths:
    M NEWS
    M include/openvswitch/vlog.h
    M lib/automake.mk
    A lib/syslog-direct.c
    A lib/syslog-direct.h
    A lib/syslog-libc.c
    A lib/syslog-libc.h
    A lib/syslog-provider.h
    M lib/vlog.c
    M lib/vlog.man

  Log Message:
  -----------
  vlog: abstract out interface to syslog daemon

This patch helps to address two issues that are present on Ubuntu
15.04 (and most likely other Linux distributions) where rsyslog daemon
is configured to relay log messages from OVS to a remote log collector
and syslog format being used is something other than the one defined in
RFC 3164.  These two issues are:

1. libc syslog() function always adds RFC 3164 prefix to syslog
   messages before sending them over /dev/log Unix domain socket.
   This does not allow us to use libc syslog() function to log in
   RFC 5424 format;  and

2. rsyslogd daemon that comes with Ubuntu 15.04 is too old and
   uses hardcoded syslog message parser when it received messages
   over /dev/log UNIX domain socket.

Solution to those two issues would be to use the newly introduced
--syslog-method=udp:127.0.0.1:514 command line argument when starting
OVS.

Signed-off-by: Ansis Atteka <aatteka at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 532e1463fcfb71738316a86420ae4fcb07b56ac3
      https://github.com/openvswitch/ovs/commit/532e1463fcfb71738316a86420ae4fcb07b56ac3
  Author: Ansis Atteka <aatteka at nicira.com>
  Date:   2015-06-27 (Sat, 27 Jun 2015)

  Changed paths:
    M NEWS
    M include/openvswitch/vlog.h
    M lib/vlog-unixctl.man
    M lib/vlog.c
    M utilities/ovs-appctl.8.in
    M utilities/ovs-appctl.c

  Log Message:
  -----------
  vlog: add "vlog/list-pattern" command

This patch allows to query logging format at the runtime for each destination
with "vlog/list-pattern" command.

Signed-off-by: Ansis Atteka <aatteka at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


Compare: https://github.com/openvswitch/ovs/compare/5bb08b0ef605...532e1463fcfb


More information about the git mailing list