|
|
|
@ -861,6 +861,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();
|
|
|
|
@ -902,6 +903,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) {
|
|
|
|
|