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",
"hashed_secret": "298b5925fe7c7458cb8a12a74621fdedafea5ad6",
"is_verified": false,
"line_number": 170,
"line_number": 171,
"is_secret": false
},
{
@ -179,7 +179,7 @@
"filename": "nomad/syslogng.nomad",
"hashed_secret": "3a1cec2d3c3de7e4da4d99c6731ca696c24b72b4",
"is_verified": false,
"line_number": 170,
"line_number": 171,
"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 {
mode = "bridge"
port "main" {
static = 1514
to = 514
}
}
@ -154,11 +154,12 @@ EOF
template {
data = <<EOF
@version: 3.22
@version: 3.37
@include "scl.conf"
source s_external {
syslog(ip(0.0.0.0) port(1514) transport("tcp"));
syslog(ip(0.0.0.0) port(1514) transport("udp"));
source s_network {
default-network-drivers(
);
};
source s_internal {
@ -171,7 +172,7 @@ 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
destination = "local/syslog-ng.conf"
}