Try to use default netowrk source for proxing syslogng

This commit is contained in:
IamTheFij 2022-09-04 14:07:04 -07:00
parent a36f411c1b
commit 8ce4e3ff14
2 changed files with 10 additions and 9 deletions

View File

@ -171,7 +171,7 @@
"filename": "nomad/syslogng.nomad", "filename": "nomad/syslogng.nomad",
"hashed_secret": "298b5925fe7c7458cb8a12a74621fdedafea5ad6", "hashed_secret": "298b5925fe7c7458cb8a12a74621fdedafea5ad6",
"is_verified": false, "is_verified": false,
"line_number": 170, "line_number": 171,
"is_secret": false "is_secret": false
}, },
{ {
@ -179,7 +179,7 @@
"filename": "nomad/syslogng.nomad", "filename": "nomad/syslogng.nomad",
"hashed_secret": "3a1cec2d3c3de7e4da4d99c6731ca696c24b72b4", "hashed_secret": "3a1cec2d3c3de7e4da4d99c6731ca696c24b72b4",
"is_verified": false, "is_verified": false,
"line_number": 170, "line_number": 171,
"is_secret": false "is_secret": false
} }
], ],
@ -210,5 +210,5 @@
} }
] ]
}, },
"generated_at": "2022-09-04T19:36:18Z" "generated_at": "2022-09-04T21:06:55Z"
} }

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"
} }