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; }