Try to use default netowrk source for proxing syslogng

This commit is contained in:
IamTheFij 2022-09-04 14:07:04 -07:00
parent 9fe5393a40
commit 5c3b60329d

View File

@ -102,7 +102,7 @@ EOF
network { network {
mode = "bridge" mode = "bridge"
port "main" { port "main" {
static = 1514 to = 514
} }
} }
@ -154,11 +154,12 @@ EOF
template { template {
data = <<EOF data = <<EOF
@version: 3.22 @version: 3.37
@include "scl.conf"
source s_external { source s_network {
syslog(ip(0.0.0.0) port(1514) transport("tcp")); default-network-drivers(
syslog(ip(0.0.0.0) port(1514) transport("udp")); );
}; };
source s_internal { source s_internal {
@ -171,7 +172,7 @@ destination d_loki {
}; };
log { source(s_internal); destination(d_loki); }; log { source(s_internal); destination(d_loki); };
log { source(s_external); destination(d_loki); }; log { source(s_network); destination(d_loki); };
EOF EOF
destination = "local/syslog-ng.conf" destination = "local/syslog-ng.conf"
} }