mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 23:10:41 +01:00
switched default to keep in line with traditional syslogd behaviour
This commit is contained in:
parent
cbad28915a
commit
953d015f44
@ -196,13 +196,16 @@ supported in order to be compliant to the upcoming new syslog RFC series.
|
||||
of the output file. The higher the number, the better the compression, but also the
|
||||
more CPU is required for zipping.</li>
|
||||
<li><b>$OMFileIOBufferSize</b> <size_nbr>, default 4k, size of the buffer used to writing output data. The larger the buffer, the potentially better performance is. The default of 4k is quite conservative, it is useful to go up to 64k, and 128K if you used gzip compression (then, even higher sizes may make sense)</li>
|
||||
<li><b>$OMFileFlushOnTXEnd</b> <[on/<b>off</b>]>, default off, by default, omfile
|
||||
<li><b>$OMFileFlushOnTXEnd</b> <[<b>on</b>/off]>, default on. Omfile has the
|
||||
capability to
|
||||
writes output using a buffered writer. Disk writes are only done when the buffer is
|
||||
full. So if an error happens during that write, data is potentially lost. In cases where
|
||||
this is unacceptable, set $OMFileFlushOnTXEnd to on. Then, data is written at the end
|
||||
of each transaction (for pre-v5 this means after <b>each</b> log message) and the usual
|
||||
error recovery thus can handle write errors without data loss. Note that this option
|
||||
severely reduces the effect of zip compression.</li>
|
||||
severely reduces the effect of zip compression and should be switched to off
|
||||
for that use case. Note that the default -off- is primarily an aid to preserve
|
||||
the traditional syslogd behaviour.</li>
|
||||
<li><b>$RepeatedMsgContainsOriginalMsg</b> [on/<b>off</b>] - "last message repeated n times" messages, if generated,
|
||||
have a different format that contains the message that is being repeated.
|
||||
Note that only the first "n" characters are included, with n to be at least 80 characters, most
|
||||
|
||||
@ -102,7 +102,7 @@ static uid_t dirGID; /* GID to be used for newly created directories */
|
||||
static int bCreateDirs; /* auto-create directories for dynaFiles: 0 - no, 1 - yes */
|
||||
static int bEnableSync = 0;/* enable syncing of files (no dash in front of pathname in conf): 0 - no, 1 - yes */
|
||||
static int iZipLevel = 0; /* zip compression mode (0..9 as usual) */
|
||||
static bool bFlushOnTXEnd = 0;/* flush write buffers when transaction has ended? */
|
||||
static bool bFlushOnTXEnd = 1;/* flush write buffers when transaction has ended? */
|
||||
static int iIOBufSize = IOBUF_DFLT_SIZE; /* size of an io buffer */
|
||||
static int iFlushInterval = FLUSH_INTRVL_DFLT; /* how often flush the output buffer on inactivity? */
|
||||
static uchar *pszTplName = NULL; /* name of the default template to use */
|
||||
@ -715,7 +715,7 @@ static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __a
|
||||
bCreateDirs = 1;
|
||||
bEnableSync = 0;
|
||||
iZipLevel = 0;
|
||||
bFlushOnTXEnd = 0;
|
||||
bFlushOnTXEnd = 1;
|
||||
iIOBufSize = IOBUF_DFLT_SIZE;
|
||||
iFlushInterval = FLUSH_INTRVL_DFLT;
|
||||
if(pszTplName != NULL) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user