log/anomaly: Move metadata out of anomaly section

This commit moves the metadata from the anomaly object where it was
incorrectly located.
pull/5452/head
Jeff Lucovsky 6 years ago committed by Victor Julien
parent f70e1f571e
commit bb71eac9f9

@ -128,12 +128,12 @@ static int AnomalyDecodeEventJson(ThreadVars *tv, JsonAnomalyLogThread *aft,
return TM_ECODE_OK;
}
jb_open_object(js, ANOMALY_EVENT_TYPE);
if (is_ip_pkt) {
EveAddCommonOptions(&aft->json_output_ctx->cfg, p, p->flow, js);
}
jb_open_object(js, ANOMALY_EVENT_TYPE);
if (event_code < DECODE_EVENT_MAX) {
const char *event = DEvents[event_code].event_name;
if (EVENT_IS_DECODER_PACKET_ERROR(event_code)) {

Loading…
Cancel
Save