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.
*/
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;