mirror of https://github.com/OISF/suricata
output-json: drop eve records that are too long
In the situation where the mem buffer cannot be expanded to the
requested size, drop the log message.
For each JSON log context, a warning will be emitted once with a partial
bit of the log record being dropped to identify what event types may be
leading to large log records.
This also fixes the call to MemBufferExpand which is supposed be
passed the amount to expand by, not the new size required.
Ticket: #7300
(cherry picked from commit d39e42728a)
pull/12207/head
parent
1bae761818
commit
3715fe3da0
Loading…
Reference in New Issue