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.
pull/886/head
Victor Julien 12 years ago
parent 305da0248d
commit 5d96ea570f

@ -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;

Loading…
Cancel
Save