Skip to content

Instantly share code, notes, and snippets.

@haproxytechblog
Created July 29, 2022 15:11

Revisions

  1. haproxytechblog created this gist Jul 29, 2022.
    9 changes: 9 additions & 0 deletions blog20220729-01.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    log-forward syslog
    # Accepts incoming TCP messages
    bind 0.0.0.0:514

    # Accepts incoming UDP messages
    dgram-bind 0.0.0.0:514

    # Sends outgoing messages via UDP
    log 172.25.0.12:514 local0
    16 changes: 16 additions & 0 deletions blog20220729-02.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    log-forward syslog
    bind 0.0.0.0:514
    dgram-bind 0.0.0.0:514

    log ring@logbuffer local0

    ring logbuffer
    description "buffer for logs"
    format rfc5424
    maxlen 1200
    size 32764
    timeout connect 5s
    timeout server 10s

    # Sends outgoing messages via TCP
    server logserver 172.25.0.12:514 check