From: Victor Julien Date: Fri, 2 May 2014 06:25:22 +0000 (+0200) Subject: flow-log: log pkts, bytes X-Git-Tag: suricata-2.1beta1~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec7d446f16fefdb609b0f79478eeed4099a7c813;p=thirdparty%2Fsuricata.git flow-log: log pkts, bytes Only in DEBUG currently. --- diff --git a/src/output-json-flow.c b/src/output-json-flow.c index 495f784921..7416c5f2ef 100644 --- a/src/output-json-flow.c +++ b/src/output-json-flow.c @@ -181,6 +181,18 @@ static void JsonFlowLogJSON(JsonFlowLogThread *aft, json_t *js, Flow *f) json_object_set_new(hjs, "app_proto", json_string(AppProtoToString(f->alproto))); + /* debug until we move this out of the debug wrapper in the flow code */ +#ifdef DEBUG + json_object_set_new(hjs, "pkts_toserver", + json_integer(f->todstpktcnt)); + json_object_set_new(hjs, "pkts_toclient", + json_integer(f->tosrcpktcnt)); + json_object_set_new(hjs, "bytes", + json_integer(f->bytecnt)); + + +#endif + json_object_set_new(js, "flow", hjs); }