From: Victor Julien Date: Thu, 1 Jun 2017 21:15:43 +0000 (+0200) Subject: lua/streaming: fix http body logging X-Git-Tag: suricata-4.0.0-beta1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30a8b2def0b54c6bfcb179f704dd9811dd06492e;p=thirdparty%2Fsuricata.git lua/streaming: fix http body logging --- 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) {