From 30a8b2def0b54c6bfcb179f704dd9811dd06492e Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 1 Jun 2017 23:15:43 +0200 Subject: [PATCH] lua/streaming: fix http body logging --- src/output-lua.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output-lua.c b/src/output-lua.c index bd9e6f2d46..9c34c2648d 100644 --- a/src/output-lua.c +++ b/src/output-lua.c @@ -788,6 +788,7 @@ static OutputCtx *OutputLuaLogInit(ConfNode *conf) if (opts.alproto == ALPROTO_HTTP && opts.streaming) { om->StreamingLogFunc = LuaStreamingLogger; + om->stream_type = STREAMING_HTTP_BODIES; om->alproto = ALPROTO_HTTP; AppLayerHtpEnableRequestBodyCallback(); AppLayerHtpEnableResponseBodyCallback(); @@ -831,6 +832,7 @@ static OutputCtx *OutputLuaLogInit(ConfNode *conf) AppLayerHtpNeedFileInspection(); } else if (opts.streaming && opts.tcp_data) { om->StreamingLogFunc = LuaStreamingLogger; + om->stream_type = STREAMING_TCP_DATA; } else if (opts.flow) { om->FlowLogFunc = LuaFlowLogger; } else if (opts.stats) {