Compare commits

...

2 Commits

Author SHA1 Message Date
Kameron Kenny e0ba968104
stats 2024-10-28 16:40:56 -04:00
Kameron Kenny 3a23ed0208
autoversion 2024-10-28 16:38:38 -04:00
5 changed files with 10 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.bak

View File

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

6
autoversion.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
v=$(date "+%Y%m%d%H%M%S")
sed -i.bak "s/^LABEL version.*/LABEL version=\"$v\"/" "Dockerfile"
sed -i.bak "s/\/tlp\/syslog-ng:.*/\/tlp\/syslog-ng:$v/" "docker-compose.yml"

View File

@ -28,7 +28,7 @@ destination d_nas81_suricata_stats {
index("nas81")
type("")
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
template("$(format-json --exclude DATE @timestamp=${ISODATE})")
template("$(format-json --scope rfc5424 --exclude DATE @timestamp=${ISODATE})")
persist-name("d_nas81")
);
};

View File

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