Linux

Where Is the syslog-ng Config File?

syslog-ng reads syslog-ng.conf in /etc/syslog-ng with modular snippets in conf.d beside it.

Last updated

syslog-ng configures from a single file in /etc/syslog-ng. The syslog-ng.conf file chains sources, filters, and destinations into log paths. Modular snippets in conf.d extend it without edits.

Syntax check before every reload since a bad file stops intake. Persisted positions for file sources sit in the persist file beside the config. Version upgrades can rename options, so match guides to the running release.

Where syslog-ng stores this, by platform

Linux
/etc/syslog-ng/syslog-ng.conf

Sources, filters, and destinations chained into log paths. Snippets in conf.d extend it. Validate with the syntax check flag before reload.

Frequently asked questions

How do I add a log destination?

Define the destination and a log path referencing it in the config, then validate and reload. Keep one concern per snippet file. Test with logger input.

Why did logs stop after an upgrade?

Option names move between syslog-ng majors. Read the error output naming the failing line. The persist file may also need version migration.

Notice an outdated path? Let us know.