From bfacedfad18f56124d94622233c4586294adaa48 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 30 Sep 2019 11:31:17 -0600 Subject: [PATCH] unified2: log deprecation warning when used --- src/alert-unified2-alert.c | 4 ++++ 1 file changed, 4 insertions(+) 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");