From: Victor Julien Date: Tue, 11 Mar 2014 16:15:05 +0000 (+0100) Subject: eve-file: set event_type to fileinfo X-Git-Tag: suricata-2.0rc3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F886%2Fhead;p=thirdparty%2Fsuricata.git eve-file: set event_type to fileinfo 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. --- diff --git a/src/output-json-file.c b/src/output-json-file.c index 4f637b248b..a501f35534 100644 --- a/src/output-json-file.c +++ b/src/output-json-file.c @@ -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;