Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created September 13, 2017 21:10
Show Gist options
  • Save taotetek/9a74227b78f226d896c7edc08cd2424f to your computer and use it in GitHub Desktop.
Save taotetek/9a74227b78f226d896c7edc08cd2424f to your computer and use it in GitHub Desktop.
if $programname startswith 'haproxy' then {
action(
name="haproxy_tcp"
type="omfwd"
protocol="tcp"
target="someserver.digitalocean.com"
port="514"
)
action(
name="haproxy_tcp"
type="omfwd"
protocol="udp"
target="someotherserver.digitalocean.com
port="514"
)
action(
name="haproxy_file"
file="/path/to/my/file.log"
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment