lua/streaming: fix http body logging

pull/2737/head
Victor Julien 8 years ago
parent 0f4a9d740e
commit 30a8b2def0

@ -788,6 +788,7 @@ static OutputCtx *OutputLuaLogInit(ConfNode *conf)
if (opts.alproto == ALPROTO_HTTP && opts.streaming) { if (opts.alproto == ALPROTO_HTTP && opts.streaming) {
om->StreamingLogFunc = LuaStreamingLogger; om->StreamingLogFunc = LuaStreamingLogger;
om->stream_type = STREAMING_HTTP_BODIES;
om->alproto = ALPROTO_HTTP; om->alproto = ALPROTO_HTTP;
AppLayerHtpEnableRequestBodyCallback(); AppLayerHtpEnableRequestBodyCallback();
AppLayerHtpEnableResponseBodyCallback(); AppLayerHtpEnableResponseBodyCallback();
@ -831,6 +832,7 @@ static OutputCtx *OutputLuaLogInit(ConfNode *conf)
AppLayerHtpNeedFileInspection(); AppLayerHtpNeedFileInspection();
} else if (opts.streaming && opts.tcp_data) { } else if (opts.streaming && opts.tcp_data) {
om->StreamingLogFunc = LuaStreamingLogger; om->StreamingLogFunc = LuaStreamingLogger;
om->stream_type = STREAMING_TCP_DATA;
} else if (opts.flow) { } else if (opts.flow) {
om->FlowLogFunc = LuaFlowLogger; om->FlowLogFunc = LuaFlowLogger;
} else if (opts.stats) { } else if (opts.stats) {

Loading…
Cancel
Save