]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
syslog: deprecate 11683/head
authorJason Ish <jason.ish@oisf.net>
Thu, 29 Aug 2024 14:51:49 +0000 (08:51 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 30 Aug 2024 13:19:02 +0000 (15:19 +0200)
The standalone syslog output is now deprecated for Suricata 8. Display
a warning on use and add notes to the userguide.

Ticket: #6544

doc/userguide/configuration/suricata-yaml.rst
doc/userguide/upgrade.rst
src/alert-syslog.c
suricata.yaml.in

index f5f3101aaeca2449292527ccdb8b5402d64aee51..ffc540585f1119a11710e5eb371bb9e4cd0f0d33 100644 (file)
@@ -581,6 +581,10 @@ section as described above.
 Syslog
 ~~~~~~
 
+.. attention:: The syslog output is deprecated in Suricata 8.0 and
+               will be removed in Suricata 9.0. Please migrate to the
+               ``eve`` output which has the ability to send to syslog.
+
 With this option it is possible to send all alert and event output to syslog.
 
 ::
index 885b8d95dbbe46a8e597a95c15c36e9b49f9a059..a4fda32a00a3f2db4553e7dcc4d1cdcc437f383b 100644 (file)
@@ -80,6 +80,9 @@ Deprecations
 ~~~~~~~~~~~~
 - The ``http-log`` output is now deprecated and will be removed in Suricata 9.0.
 - The ``tls-log`` output is now deprecated and will be removed in Suricata 9.0.
+- The ``syslog`` output is now deprecated and will be removed in
+  Suricata 9.0. Note that this is the standalone ``syslog`` output and
+  does affect the ``eve`` outputs ability to send to syslog.
 
 Upgrading 6.0 to 7.0
 --------------------
index 856e5843d03d54abb51609c15b19ad6d8982b10c..5c00f1b350563cf12f062b89f57b903a12e472c7 100644 (file)
@@ -87,6 +87,8 @@ static void AlertSyslogDeInitCtx(OutputCtx *output_ctx)
  */
 static OutputInitResult AlertSyslogInitCtx(ConfNode *conf)
 {
+    SCLogWarning("The syslog output has been deprecated and will be removed in Suricata 9.0.");
+
     OutputInitResult result = { NULL, false };
     const char *facility_s = ConfNodeLookupChildValue(conf, "facility");
     if (facility_s == NULL) {
index 5a61c8050f1f02c17a2f04c740a1a00f03013966..9c116a3082a23a46aafb81639579436f738e8100 100644 (file)
@@ -434,16 +434,6 @@ outputs:
       threads: no       # per thread stats
       #null-values: yes  # print counters that have value 0. Default: no
 
-  # a line based alerts log similar to fast.log into syslog
-  - syslog:
-      enabled: no
-      # reported identity to syslog. If omitted the program name (usually
-      # suricata) will be used.
-      #identity: "suricata"
-      facility: local5
-      #level: Info ## possible levels: Emergency, Alert, Critical,
-                   ## Error, Warning, Notice, Info, Debug
-
   # Output module for storing files on disk. Files are stored in
   # directory names consisting of the first 2 characters of the
   # SHA256 of the file. Each file is given its SHA256 as a filename.