From 3ec8bd2bba788f7a52e3d4dcc7d4a9a64ba6e0c1 Mon Sep 17 00:00:00 2001
From: Rainer Gerhards
*.* /var/log/file-with-0644
As you can see, open modes depend on position in the config file. Note the first line, which is created with the hardcoded default creation mode.
-This directive specifies whether or not repeated lines should be reduced -(this is the "Last line repeated n times" feature). If set to on, repeated lines -(messages) are reduced. If set to off, every line is logged. Please note that +
This directive specifies whether or not repeated messages should be reduced +(this is the "Last line repeated n times" feature). If set to on, repeated messages are reduced. If set to off, every +message is logged. Please note that this directive overrides the -e command line option. In case -e is given, it is -just the default value until the first RepeatedLineReduction directive is +just the default value until the first RepeatedMsgReduction directive is encountered. Sample:
-$RepeatedLineReduction off # log every message
$RepeatedMsgReduction off # log every message
Directives affects selector lines until a new directive is specified.
This directive specifies the maximum size of the cache for diff --git a/syslogd.c b/syslogd.c index ef6db26b..aefefbab 100644 --- a/syslogd.c +++ b/syslogd.c @@ -7268,7 +7268,7 @@ void cfsysline(uchar *p) doFileCreateModeUmaskLine(&p, DIR_UMASK); } else if(!strcasecmp((char*) szCmd, "dynafilecachesize")) { doDynaFileCacheSizeLine(&p, DIR_DYNAFILECACHESIZE); - } else if(!strcasecmp((char*) szCmd, "repeatedlinereduction")) { + } else if(!strcasecmp((char*) szCmd, "repeatedmsgreduction")) { doBinaryOptionLine(&p, &bReduceRepeatMsgs); } else if(!strcasecmp((char*) szCmd, "escapecontrolcharactersonreceive")) { doBinaryOptionLine(&p, &bEscapeCCOnRcv); @@ -7632,7 +7632,7 @@ static void init() break; } if(f->f_ReduceRepeated) - printf(" [RepeatedLineReduction]"); + printf(" [RepeatedMsgReduction]"); printf("\n"); } } -- cgit v1.2.3