This commit is contained in:
Kameron Kenny 2024-10-28 17:19:52 -04:00
parent 2ca0ee4737
commit debc4c5dd6
No known key found for this signature in database
GPG Key ID: E5006629839D2276
3 changed files with 6 additions and 10 deletions

View File

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

View File

@ -2,13 +2,8 @@ filter f_nas81_suricata { match("suricata" value("PROGRAM")); };
filter f_nas81_host { match("nas81" value("HOST")); };
filter f_nas81_suricata_stats { match("stats" value("MESSAGE")); };
template t_json {
template("${MESSAGE}\n");
template-escape(no);
};
parser p_suricata_stats_json {
json-parser(prefix("suricata.stats."));
json-parser(prefix(".suricata.stats."));
};
destination d_nas81_suricata {
@ -28,9 +23,10 @@ destination d_nas81_suricata_stats {
index("nas81")
type("")
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
template("$(format-json --scope nv_pairs,core,syslog,all_macros,selected_macros,everything
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
--rekey .* --shift 1 --scope nv-pairs
--exclude DATE @timestamp=${ISODATE})")
persist-name("d_nas81")
persist-name("d_nas81_suricata_stats")
);
};

View File

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