Skip to content

This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!


syslog-ng

syslog-ng is an enhanced log monitor, supporting a wide range of input and output methods: syslog, unstructured text, message queues, databases (SQL and NoSQL alike), and more.

TODO

Reference(s)

Table of contents


Install

Install syslog-ng:

$ emerge -a app-admin/syslog-ng
# pacman -S syslog-ng
# apt install syslog-ng
# yum install syslog-ng
# dnf install syslog-ng

Then add it to your init system and start it:

# /etc/init.d/syslog-ng start
# rc-update add syslog-ng default
# ln -s /etc/runit/sv/syslog-ng /run/runit/service
# sv start syslog-ng
# service syslog-ng start
# chkconfig syslog-ng on
# systemctl start syslog-ng
# systemctl enable syslog-ng

Config

Default config should be fine.

TODO


Use

TODO

Optional: logrotate

TODO


If this cheat sheet has been useful to you, then please consider leaving a star here.