From: Jason Ish Date: Mon, 30 Sep 2019 17:31:17 +0000 (-0600) Subject: unified2: log deprecation warning when used X-Git-Tag: suricata-5.0.0~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfacedfad18f56124d94622233c4586294adaa48;p=thirdparty%2Fsuricata.git unified2: log deprecation warning when used --- diff --git a/src/alert-unified2-alert.c b/src/alert-unified2-alert.c index 6eb62c29e7..6fe26efa45 100644 --- a/src/alert-unified2-alert.c +++ b/src/alert-unified2-alert.c @@ -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");