2016-02-12 22:19 GMT+01:00 David Lang <[email protected]>:

> I don't see anything obviously wrong with this. try starting up in debug
> mode in case the startup process give you more info when it hits these
> lines.
>
>
fileCreateMode and dirCreateMode are applied at the template level, but
this is not valid. They are omfile action parameters.

Rainer


> Beyond that, I would hunt the source code to see if there's a typo between
> what the code expects and what is documented.
>
> David Lang
>
> On Fri, 12 Feb 2016, Peter Horvath wrote:
>
> Date: Fri, 12 Feb 2016 11:56:21 +0100
>> From: Peter Horvath <[email protected]>
>> Reply-To: rsyslog-users <[email protected]>
>> To: rsyslog-users <[email protected]>
>> Subject: [rsyslog] filecreatemode dircreatemode with dyna file
>>
>>
>> Hi,
>>
>> I have a setup where i would like to make sure dirs and file are create
>> with strict file mask.
>> template(name="AppDynLogDirFile" type="string"
>>
>> string="/export/logs/%PROGRAMNAME%/%$YEAR%/%$MONTH%/%$DAY%/application.log"
>> FileCreateMode="0600" dirCreateMode="0700")
>> template(name="AccessDynLogDirFile" type="string"
>> string="/export/logs/%PROGRAMNAME%/%$YEAR%/%$MONTH%/%$DAY%/access.log"
>> FileCreateMode="0600" dirCreateMode="0700")
>> template(name="ClamavDynLogFile" type="string"
>> string="/var/log/clamav/%PROGRAMNAME%.log" FileCreateMode="0600"
>> dirCreateMode="0700")
>>
>> But i am getting this error message:
>> eb  9 10:32:52 default rsyslogd-2207: error during parsing file
>> /etc/rsyslog.conf,
>> on or before line 12: parameter 'dirCreateMode' not known -- typo in
>> config
>> file? [v8.16.0 try http://www.rsyslog.com/e/2207 ]
>> Feb  9 10:32:52 default rsyslogd-2207: error during parsing file /etc/
>> rsyslog.conf, on or before line 12: parameter 'FileCreateMode' not known
>> --
>> typo in config file? [v8.16.0 try http://www.rsyslog.com/e/2207 ]
>> Feb  9 10:32:52 default rsyslogd-2207: error during parsing file /etc/
>> rsyslog.conf, on or before line 13: parameter 'dirCreateMode' not known --
>> typo in config file? [v8.16.0 try http://www.rsyslog.com/e/2207 ]
>> Feb  9 10:32:52 default rsyslogd-2207: error during parsing file /etc/
>> rsyslog.conf, on or before line 13: parameter 'FileCreateMode' not known
>> --
>> typo in config file? [v8.16.0 try http://www.rsyslog.com/e/2207 ]
>> Feb  9 10:32:52 default rsyslogd-2207: error during parsing file /etc/
>> rsyslog.conf, on or before line 20: parameter 'dirCreateMode' not known --
>> typo in config file? [v8.16.0 try http://www.rsyslog.com/e/2207 ]
>> Feb  9 10:32:52 default rsyslogd-2207: error during parsing file /etc/
>> rsyslog.conf, on or before line 20: parameter 'FileCreateMode' not known
>> --
>> typo in config file? [v8.16.0 try http://www.rsyslog.com/e/2207 ]
>>
>> Is there any solution for this?
>>
>> Peter
>> _______________________________________________
>> rsyslog mailing list
>> http://lists.adiscon.net/mailman/listinfo/rsyslog
>> http://www.rsyslog.com/professional-services/
>> What's up with rsyslog? Follow https://twitter.com/rgerhards
>> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
>> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
>> DON'T LIKE THAT.
>>
>> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to