From e04b5f0dcaa11bd4f9d630bf42f4f5fb999a7d54 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 12 Mar 2014 09:31:34 +0100 Subject: [PATCH] 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. --- src/output-json-http.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.47.2