This commit is contained in:
Kameron Kenny 2024-06-07 17:55:57 -04:00
parent 7dce155b89
commit 90b14ffc2e
No known key found for this signature in database
GPG Key ID: E5006629839D2276
4 changed files with 24 additions and 4 deletions

View File

@ -1,6 +1,6 @@
FROM lscr.io/linuxserver/syslog-ng:latest FROM lscr.io/linuxserver/syslog-ng:latest
LABEL version="20240607.1.2" LABEL version="20240607.1.3"
LABEL description="syslog-ng" LABEL description="syslog-ng"
RUN mkdir -p /config RUN mkdir -p /config

9
Jenkinsfile vendored
View File

@ -28,6 +28,15 @@ pipeline {
} }
} }
stage('Cleanup...') {
steps {
sh 'docker --context pi502 container stop syslog-ng'
sh 'docker --context pi502 container prune -f'
sh 'docker --context pi502 volume prune -f'
sh 'docker --context pi502 image prune -f'
}
}
stage('Start container') { stage('Start container') {
steps { steps {
script { script {

View File

@ -103,6 +103,17 @@ destination d_unifi_wlan {
); );
}; };
destination d_syslog_ng_es {
elasticsearch-http(
index("syslog-ng")
type("")
user("elastic")
password("forty6and2")
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
persist-name("persist")
);
};
log { log {
source(s_network_udp); source(s_network_udp);
filter(f_unifi_fw_lan); filter(f_unifi_fw_lan);
@ -170,6 +181,6 @@ log {
source(s_local); source(s_local);
source(s_network_tcp); source(s_network_tcp);
source(s_network_udp); source(s_network_udp);
destination(d_local); destination(d_syslog_ng_es);
}; };

View File

@ -10,12 +10,12 @@ services:
syslog-ng: syslog-ng:
build: build:
dockerfile: Dockerfile dockerfile: Dockerfile
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:240607.1.2 image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:240607.1.3
container_name: syslog-ng container_name: syslog-ng
environment: environment:
- PUID=0 - PUID=0
- PGID=0 - PGID=0
- TZ=Etc/UTC - TZ=America/Indianapolis
volumes: volumes:
- syslog-ng_logs:/var/log - syslog-ng_logs:/var/log
ports: ports: