You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
871 B
Bash

# [syslog-ng](https://www.syslog-ng.com/products/open-source-log-management/)
# allows you to flexibly collect, parse, classify, rewrite and correlate logs
# from across your infrastructure and store or route them to log analysis tools.
. ./.env
docker run -d \
--name=syslog-ng \
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
-e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \
-p 514:5514/udp `# Syslog UDP` \
-p 601:6601/tcp `# Syslog TCP` \
-p 6514:6514/tcp `# Syslog TLS` \
-v ${BASEDIR:-/volume1/docker}/syslog-ng/config:/config `# Stores config and application files` \
-v /var/log:/var/log `# optional` `# Stores logs collected by the syslog-ng service` \
--restart unless-stopped \
ghcr.io/linuxserver/syslog-ng