file-json: add file_id to message

This will allow to get the filename and by consequence the file
after a parsing of the EVEV log file.
pull/1606/head
Eric Leblond 10 years ago committed by Victor Julien
parent 8fde842f97
commit 1cd97713c2

@ -242,6 +242,9 @@ static void FileWriteJsonRecord(JsonFileLogThread *aft, const Packet *p, const F
}
json_object_set_new(fjs, "stored",
(ff->flags & FILE_STORED) ? json_true() : json_false());
if (ff->flags & FILE_STORED) {
json_object_set_new(fjs, "file_id", json_integer(ff->file_id));
}
json_object_set_new(fjs, "size", json_integer(ff->size));
json_object_set_new(fjs, "tx_id", json_integer(ff->txid));

Loading…
Cancel
Save