]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
eve-file: set event_type to fileinfo 886/head
authorVictor Julien <victor@inliniac.net>
Tue, 11 Mar 2014 16:15:05 +0000 (17:15 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 11 Mar 2014 16:15:05 +0000 (17:15 +0100)
To remain constistent with the other logs, set the event type to
the same name as the structure containing the defails. In this
case fileinfo.

Part of bug #1127.

src/output-json-file.c

index 4f637b248b2a44d27a4138c9e395961d19daed72..a501f35534bab6e429f5866a1fe85a2eac5e8d3c 100644 (file)
@@ -165,7 +165,7 @@ static json_t *LogFileMetaGetUserAgent(const Packet *p, const File *ff) {
  */
 static void FileWriteJsonRecord(JsonFileLogThread *aft, const Packet *p, const File *ff) {
     MemBuffer *buffer = (MemBuffer *)aft->buffer;
-    json_t *js = CreateJSONHeader((Packet *)p, 0, "file"); //TODO const
+    json_t *js = CreateJSONHeader((Packet *)p, 0, "fileinfo"); //TODO const
     if (unlikely(js == NULL))
         return;