The Container receives syslog by udp:514 and writes messages to the mysql database.
255
Run command:
docker run -itd \
-v /YOUR/LOCAL/FOLDER/FOR/DATA:/var/lib/mysql/ \
-p 3306:3306 \
-p 514:514 \
-p 514:514/udp \
--restart unless-stopped \
--name=syslog insaned/syslog bash -c "/etc/rc.local"
To change password for mysql user (username: syslog) run:
docker exec -it syslog mysql -e "SET PASSWORD FOR 'syslog'@'%'= PASSWORD('NEWPASSWORD');"
To change timezone run:
docker exec -it syslog bash -c 'echo "Europe/Moscow" > /etc/timezone && rm -f /etc/localtime && dpkg-reconfigure -f noninteractive tzdata'
To edit storage depth, edit crontab (default: 30 days):
docker exec -it syslog crontab -e
The recommended client can be taken away from here: https://github.com/Insaned79/syslog/releases
Content type
Image
Digest
Size
229.7 MB
Last updated
almost 6 years ago
docker pull insaned/syslog