From 5d96ea570fd1d3db92acb154e3642d0f9233b56c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 11 Mar 2014 17:15:05 +0100 Subject: [PATCH] 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. --- src/output-json-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2