This commit is contained in:
Kameron Kenny 2024-10-29 15:06:38 -04:00
parent d8bdb295a6
commit 4ffde3b26b
No known key found for this signature in database
GPG Key ID: E5006629839D2276
3 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,7 @@
FROM debian:latest
MAINTAINER Kameron Kenny <kkenny379@gmail.com>
LABEL version="20241029145218"
LABEL version="20241029150638"
LABEL description="Debian Based syslog-ng"
RUN apt-get update

View File

@ -41,8 +41,8 @@ destination d_nas81_suricata_stats {
);
};
destination d_file_suricata {
file("/var/log/suricata.log"
destination d_file_suricata_stats {
file("/var/log/suricata_stats.log"
template(
"$(
format-json --scope rfc5424 --scope dot-nv-pairs
@ -54,6 +54,14 @@ destination d_file_suricata {
);
};
destination d_file_suricata {
file("/var/log/suricata.log"
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
--rekey .* --shift 1 --scope nv-pairs
--exclude DATE @timestamp=${ISODATE})")
);
};
log {
source(s_network_udp);
filter(f_nas81_host);

View File

@ -10,7 +10,7 @@ services:
syslog-ng:
build:
dockerfile: Dockerfile
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241029145218
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241029150638
container_name: syslog-ng
restart: unless-stopped
networks: