]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
log/eve: Rename fileinfo alert object to files
authorJeff Lucovsky <jeff@lucovsky.org>
Wed, 16 Sep 2020 12:11:10 +0000 (08:11 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 24 Sep 2020 15:11:41 +0000 (17:11 +0200)
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.

src/output-json-alert.c

index 11454b80fec1eaeac1a98cd106378207b3772fe3..426a44114058ff8883f4f4ecbf248d03fc1bbe95 100644 (file)
@@ -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);