stats
This commit is contained in:
parent
2ca0ee4737
commit
debc4c5dd6
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue