log/eve: Rename fileinfo alert object to files

This commit changes the name of the "fileinfo" array in the alert object
to "files" to better support legacy use of "fileinfo" in reporting and
elsewhere.

The "fileinfo" event type is not an array while the alert "fileinfo"
member was.
pull/5442/head
Jeff Lucovsky 6 years ago committed by Victor Julien
parent 69fffb2dc4
commit c5ace81a27

@ -556,7 +556,7 @@ static void AlertAddFiles(const Packet *p, JsonBuilder *jb, const uint64_t tx_id
if (tx_id == file->txid) {
if (!isopen) {
isopen = true;
jb_open_array(jb, "fileinfo");
jb_open_array(jb, "files");
}
jb_start_object(jb);
EveFileInfo(jb, file, file->flags & FILE_STORED);

Loading…
Cancel
Save