]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: ring: add server statement to forward messages from a ring
authorEmeric Brun <ebrun@haproxy.com>
Thu, 28 May 2020 09:13:15 +0000 (11:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 31 May 2020 08:46:13 +0000 (10:46 +0200)
commit494c5057034ba7dddb2688da6abd57991b79296a
tree964ce0924c7b63543a2373f951d826000c285829
parent9f2ff3a7005d0eb155514e0b19c1f4ecb8ea344b
MEDIUM: ring: add server statement to forward messages from a ring

This patch adds new statement "server" into ring section, and the
related "timeout connect" and "timeout server".

server <name> <address> [param*]
  Used to configure a syslog tcp server to forward messages from ring buffer.
  This supports for all "server" parameters found in 5.2 paragraph.
  Some of these parameters are irrelevant for "ring" sections.

timeout connect <timeout>
  Set the maximum time to wait for a connection attempt to a server to succeed.

  Arguments :
    <timeout> is the timeout value specified in milliseconds by default, but
              can be in any other unit if the number is suffixed by the unit,
              as explained at the top of this document.

timeout server <timeout>
  Set the maximum time for pending data staying into output buffer.

  Arguments :
    <timeout> is the timeout value specified in milliseconds by default, but
              can be in any other unit if the number is suffixed by the unit,
              as explained at the top of this document.

  Example:
    global
        log ring@myring local7

    ring myring
        description "My local buffer"
        format rfc3164
        maxlen 1200
        size 32764
        timeout connect 5s
        timeout server 10s
        server mysyslogsrv 127.0.0.1:6514
doc/configuration.txt
include/common/hathreads.h
include/types/applet.h
include/types/sink.h
src/sink.c