From 07ee32effaeb168a888706363905c5cd07fe2262 Mon Sep 17 00:00:00 2001 From: Volodymyr Paprotski Date: Thu, 26 Sep 2024 11:21:06 -0400 Subject: [PATCH] Update legacy.rst (#608) * Update legacy.rst Comments on syslog-ng use * Update source/development/backend/legacy.rst Co-authored-by: Ad Schellevis --------- Co-authored-by: Ad Schellevis --- source/development/backend/legacy.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/development/backend/legacy.rst b/source/development/backend/legacy.rst index 8f14292d..735f5982 100644 --- a/source/development/backend/legacy.rst +++ b/source/development/backend/legacy.rst @@ -289,12 +289,14 @@ To test if a service registration functions properly, just restart the syslog fa .. Note:: - In order to define local targets for Syslog-NG you can just add **local** filters which will be collected into + In order to define local targets for Syslog-NG you can just add **local** filters (e.g. by creating + :code:`src/opnsense/service/templates/OPNsense/Syslog/local/helloworld.conf`) which will be collected into one large syslog configuration. The readme on `GitHub `__ describes the process. When running into issues, always make sure to manually restart syslog-ng first (:code:`service syslog-ng restart`), definition errors won't - be written into any log. + be written into any log. You will also have to restart the plugin (:code:`pluginctl -s syslog-ng restart`) for the syslog-ng configuration + files to be regenerated. .. Note::