Created
July 29, 2022 15:11
-
-
Save haproxytechblog/4640068b8720064181ee876bf948f2c0 to your computer and use it in GitHub Desktop.
Log Forwarding with HAProxy and Syslog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you find any solution to the originating source IP?