config
This commit is contained in:
parent
7dce155b89
commit
90b14ffc2e
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue