]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
unified2: log deprecation warning when used
authorJason Ish <jason.ish@oisf.net>
Mon, 30 Sep 2019 17:31:17 +0000 (11:31 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Oct 2019 13:48:11 +0000 (15:48 +0200)
src/alert-unified2-alert.c

index 6eb62c29e7887b6b3ac7be248027c98ff4f6dc1e..6fe26efa452081e504a25ccd94757772f3a8b9be 100644 (file)
@@ -1281,6 +1281,10 @@ OutputInitResult Unified2AlertInitCtx(ConfNode *conf)
     HttpXFFCfg *xff_cfg = NULL;
     int nostamp = 0;
 
+    SCLogWarning(SC_WARN_DEPRECATED,
+        "Unified2 alert has been deprecated and will be removed by "
+        "December 2019.");
+
     LogFileCtx* file_ctx = LogFileNewCtx();
     if (file_ctx == NULL) {
         SCLogError(SC_ERR_UNIFIED2_ALERT_GENERIC, "Couldn't create new file_ctx");