mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Return weird if a log line is over a configurable size limit
This commit is contained in:
parent
9bda7493ec
commit
19346b93ad
11 changed files with 261 additions and 26 deletions
|
@ -2901,7 +2901,20 @@ export {
|
|||
auth_flavors: vector of auth_flavor_t &optional; ##< Returned authentication flavors
|
||||
};
|
||||
|
||||
} # end export
|
||||
}
|
||||
|
||||
module Log;
|
||||
|
||||
export {
|
||||
## Maximum size of a message that can be sent to a remote logger or logged
|
||||
## locally. If this limit is met, report a ``log_line_too_large`` weird and drop
|
||||
## the log entry. This isn't necessarily the full size of a line that might be
|
||||
## written to a log, but a general representation of the size as the log record is
|
||||
## serialized for writing. The size of end result from serialization might be
|
||||
## higher than this limit, but it prevents runaway-sized log entries from causing
|
||||
## problems.
|
||||
const max_log_record_size = 1024*1024*64 &redef;
|
||||
}
|
||||
|
||||
module POP3;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue