stats
This commit is contained in:
parent
9c04d88549
commit
3d3f94632a
|
@ -1,7 +1,7 @@
|
|||
FROM debian:latest
|
||||
MAINTAINER Kameron Kenny <kkenny379@gmail.com>
|
||||
|
||||
LABEL version="20241029143250"
|
||||
LABEL version="20241029144001"
|
||||
LABEL description="Debian Based syslog-ng"
|
||||
|
||||
RUN apt-get update
|
||||
|
|
|
@ -4,7 +4,7 @@ filter f_nas81_suricata_stats { match("suricata-stats" value("PROGRAM")); };
|
|||
|
||||
parser p_suricata_stats_json {
|
||||
json-parser(
|
||||
prefix("suricata.stats.")
|
||||
prefix("suricata.")
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -25,20 +25,28 @@ destination d_nas81_suricata_stats {
|
|||
index("nas81")
|
||||
type("")
|
||||
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
||||
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
|
||||
--rekey .* --shift 1 --scope nv-pairs
|
||||
--exclude DATE @timestamp=${ISODATE}
|
||||
--exclude MESSAGE delimiter('\n'))")
|
||||
template(
|
||||
"$(
|
||||
format-json --scope rfc5424 --scope dot-nv-pairs
|
||||
--rekey .* --shift 1 --scope nv-pairs
|
||||
--exclude DATE @timestamp=${ISODATE}
|
||||
--exclude MESSAGE
|
||||
)\n"
|
||||
)
|
||||
persist-name("d_nas81_suricata_stats")
|
||||
);
|
||||
};
|
||||
|
||||
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}
|
||||
--exclude MESSAGE delimiter('\n'))")
|
||||
template(
|
||||
"$(
|
||||
format-json --scope rfc5424 --scope dot-nv-pairs
|
||||
--rekey .* --shift 1 --scope nv-pairs
|
||||
--exclude DATE @timestamp=${ISODATE}
|
||||
--exclude MESSAGE
|
||||
)\n"
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ services:
|
|||
syslog-ng:
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241029143250
|
||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241029144001
|
||||
container_name: syslog-ng
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
|
Loading…
Reference in New Issue