stats
This commit is contained in:
parent
2745ed2ce0
commit
18dee6e0b7
|
@ -1,7 +1,7 @@
|
||||||
FROM debian:latest
|
FROM debian:latest
|
||||||
MAINTAINER Kameron Kenny <kkenny379@gmail.com>
|
MAINTAINER Kameron Kenny <kkenny379@gmail.com>
|
||||||
|
|
||||||
LABEL version="20241029144357"
|
LABEL version="20241029145027"
|
||||||
LABEL description="Debian Based syslog-ng"
|
LABEL description="Debian Based syslog-ng"
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
|
@ -8,6 +8,10 @@ parser p_suricata_stats_json {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rewrite r_set_message {
|
||||||
|
set("extracted", value("MESSAGE"));
|
||||||
|
};
|
||||||
|
|
||||||
destination d_nas81_suricata {
|
destination d_nas81_suricata {
|
||||||
elasticsearch-http(
|
elasticsearch-http(
|
||||||
index("nas81-suricata")
|
index("nas81-suricata")
|
||||||
|
@ -30,7 +34,7 @@ destination d_nas81_suricata_stats {
|
||||||
format-json --scope rfc5424 --scope dot-nv-pairs
|
format-json --scope rfc5424 --scope dot-nv-pairs
|
||||||
--scope nv-pairs
|
--scope nv-pairs
|
||||||
--exclude DATE @timestamp=${ISODATE}
|
--exclude DATE @timestamp=${ISODATE}
|
||||||
--exclude MESSAGE
|
MESSAGE="extracted"
|
||||||
)\n"
|
)\n"
|
||||||
)
|
)
|
||||||
persist-name("d_nas81_suricata_stats")
|
persist-name("d_nas81_suricata_stats")
|
||||||
|
@ -44,7 +48,7 @@ destination d_file_suricata {
|
||||||
format-json --scope rfc5424 --scope dot-nv-pairs
|
format-json --scope rfc5424 --scope dot-nv-pairs
|
||||||
--scope nv-pairs
|
--scope nv-pairs
|
||||||
--exclude DATE @timestamp=${ISODATE}
|
--exclude DATE @timestamp=${ISODATE}
|
||||||
--exclude MESSAGE
|
MESSAGE="extracted"
|
||||||
)\n"
|
)\n"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -10,7 +10,7 @@ services:
|
||||||
syslog-ng:
|
syslog-ng:
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241029144357
|
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241029145027
|
||||||
container_name: syslog-ng
|
container_name: syslog-ng
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in New Issue