Skip to content

maxchen021/syslog-ng-docker-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

syslog-ng

This is a simple syslog-ng docker image. It support writing log to 2 different format:

  • /var/log/syslog-ng/$HOST/$HOST.log (default)
  • /var/log/syslog-ng/$YEAR-$MONTH-$DAY/$HOST.log

Usage

Run the following command to start the container:

docker run -p 514:514 -p 514:514/udp -d maxchen021/syslog-ng

Run the follow command if you want to use this log format: /var/log/syslog-ng/$YEAR-$MONTH-$DAY/$HOST.log

docker run -p 514:514 -p 514:514/udp -d maxchen021/syslog-ng logformat=date

You can keep the log data separate from the container (replace /mnt/syslog-ng with your chosen path):

docker run -v /mnt/syslog-ng:/var/log/syslog-ng -p 514:514 -p 514:514/udp -d maxchen021/syslog-ng

You can also supply your own syslog-ng.conf file:

docker run -v /custom-syslog-ng.conf-path:/etc/syslog-ng/syslog-ng.conf -p 514:514 -p 514:514/udp -d maxchen021/syslog-ng

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages