The buffer-size value that controls file output buffering defaults to
8k. To be consistent with previous logic, the default is being changed
to 0 (e.g., needed if there are old config files that don't specifically
enable the new value).
/* Determine the buffering for this output device; a value of 0 means to not buffer;
* any other value must be a multiple of 4096
+ * The default value is 0 (no buffering)
*/
uint32_t buffer_size = LOGFILE_EVE_BUFFER_SIZE;
const char *buffer_size_value = ConfNodeLookupChildValue(conf, "buffer-size");
#define LOGFILE_ROTATE_INTERVAL 0x04
/* Default EVE output buffering size */
-#define LOGFILE_EVE_BUFFER_SIZE (8 * 1024)
+#define LOGFILE_EVE_BUFFER_SIZE 0
LogFileCtx *LogFileNewCtx(void);
int LogFileFreeCtx(LogFileCtx *);
# Specify the amount of buffering, in bytes, for
# this output type. The default value 0 means "no
# buffering".
- buffer-size: 0
+ #buffer-size: 0
#prefix: "@cee: " # prefix to prepend to each log entry
# the following are valid when type: syslog above
#identity: "suricata"