From: Victor Julien Date: Wed, 12 Mar 2014 08:31:34 +0000 (+0100) Subject: eve-http: register with app-layer api X-Git-Tag: suricata-2.0rc3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F890%2Fhead;p=thirdparty%2Fsuricata.git eve-http: register with app-layer api The HTTP module of Eve didn't register itself with the app-layer for HTTP. This meant that if no other HTTP logger was active, the HTTP logging in Eve wouldn't work. This patch makes the HTTP Eve module register itself correctly. Bug #1133. --- diff --git a/src/output-json-http.c b/src/output-json-http.c index f0649b3fc0..7aca281fde 100644 --- a/src/output-json-http.c +++ b/src/output-json-http.c @@ -274,6 +274,9 @@ OutputCtx *OutputHttpLogInit(ConfNode *conf) output_ctx->data = http_ctx; output_ctx->DeInit = NULL; + /* enable the logger for the app layer */ + AppLayerParserRegisterLogger(IPPROTO_TCP, ALPROTO_HTTP); + return output_ctx; } @@ -306,6 +309,9 @@ OutputCtx *OutputHttpLogInitSub(ConfNode *conf, OutputCtx *parent_ctx) output_ctx->data = http_ctx; output_ctx->DeInit = NULL; + /* enable the logger for the app layer */ + AppLayerParserRegisterLogger(IPPROTO_TCP, ALPROTO_HTTP); + return output_ctx; }