file
This commit is contained in:
parent
ddaed1069d
commit
d0c710425a
|
@ -1,7 +1,7 @@
|
|||
FROM debian:latest
|
||||
MAINTAINER Kameron Kenny <kkenny379@gmail.com>
|
||||
|
||||
LABEL version="20241024.1.2"
|
||||
LABEL version="20241024.1.3"
|
||||
LABEL description="Debian Based syslog-ng"
|
||||
|
||||
RUN apt-get update
|
||||
|
|
|
@ -1,22 +1,5 @@
|
|||
filter f_nas81_suricata { match("suricata" value("PROGRAM")); };
|
||||
filter f_nas81_host { match("nas81" value("HOST")); };
|
||||
parser p_kv { kv-parser(prefix("kv.")); };
|
||||
|
||||
parser p_suricata_dest_ip_geoip2_city {
|
||||
geoip2(
|
||||
"${suricata.dest_ip}",
|
||||
prefix( "geoip2.destination." )
|
||||
database( "/config/GeoIP/GeoLite2-City.mmdb" )
|
||||
);
|
||||
};
|
||||
|
||||
parser p_suricata_src_ip_geoip2_city {
|
||||
geoip2(
|
||||
"${suricata.src_ip}",
|
||||
prefix( "geoip2.source." )
|
||||
database( "/config/GeoIP/GeoLite2-City.mmdb" )
|
||||
);
|
||||
};
|
||||
|
||||
destination d_nas81_suricata {
|
||||
elasticsearch-http(
|
||||
|
@ -37,9 +20,9 @@ destination d_file_suricata { file("/var/log/suricata.log"); };
|
|||
log {
|
||||
source(s_network_udp);
|
||||
filter(f_nas81_host);
|
||||
#parser(p_suricata_json);
|
||||
#parser(p_suricata_src_ip_geoip2_city);
|
||||
#parser(p_suricata_dest_ip_geoip2_city);
|
||||
parser(p_suricata_json);
|
||||
parser(p_suricata_src_ip_geoip2_city);
|
||||
parser(p_suricata_dest_ip_geoip2_city);
|
||||
destination(d_file_suricata);
|
||||
destination(d_nas81_suricata);
|
||||
flags(final);
|
||||
|
|
|
@ -10,7 +10,7 @@ services:
|
|||
syslog-ng:
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:241024.1.2
|
||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:241024.1.3
|
||||
container_name: syslog-ng
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
|
Loading…
Reference in New Issue