On Thu, Aug 8, 2013 at 6:46 PM, Murphy, Brandon <
[email protected]> wrote:

> When doing a check config (-N 1) I'm getting an error regarding the issue
> of "persiststateinterval"  with the imfile module.  There error is "imfile:
> program error, non-handled param 'persiststateinterval'"
>
> I've double checked the documentation (
> http://www.rsyslog.com/doc/imfile.html) on this a couple times and think
> I've got it right.  Any ideas what I'm doing wrong here?
>
>
Nothing - it's unfortunately a typo in imfile. I'll correct it soon and
will post a link to the patch.

Rainer

> Below is the relevant output and config details
>
> Rsyslog Version:
> rsyslogd 7.4.3, compiled with:
>          FEATURE_REGEXP:                         Yes
>         FEATURE_LARGEFILE:                      No
>         GSSAPI Kerberos 5 support:              Yes
>         FEATURE_DEBUG (debug build, slow code): No
>         32bit Atomic operations supported:      Yes
>          64bit Atomic operations supported:      Yes
>         Runtime Instrumentation (slow code):    No
>          uuid support:                           Yes
>
> Config:
> input(type="imfile"
>      File="/var/log/test0/test0-00.log"
>      Tag="nprobe-test0-00:"
>      StateFile="stat-test0-00"
>      Severity="error"
>      PersistStateInterval="10000"
>      Facility="local7"
> )
>
>
> Output of '/usr/sbin/rsyslogd -d -n -c5 -N 1 -f /etc/rsyslog.conf': (error
> in bold)
> 6849.425081103:7f32f218a740: config parser: resume parsing of file
> /etc/rsyslog.d/48-nsm-test0.conf at line 1
> 6849.425322960:7f32f218a740: Decoding property-based filter
> ':msg,contains,"[UFW "'
> 6849.425377950:7f32f218a740: cnf:global:script
> 6849.428402948:7f32f218a740: cnf:global:obj: obj: 'input'
> 6849.428406830:7f32f218a740: nvlst 0x1c74cf0:
> 6849.428408520:7f32f218a740:    name: 'Facility', value 'local7'
> 6849.428410030:7f32f218a740:    name: 'persistStateInterval', value '100'
> 6849.428411334:7f32f218a740:    name: 'Severity', value 'error'
> 6849.428412656:7f32f218a740:    name: 'StateFile', value 'stat-test0-00'
> 6849.428413970:7f32f218a740:    name: 'Tag', value 'test0-00:'
> 6849.428415419:7f32f218a740:    name: 'File', value
> '/var/log/test0/test0-00.log'
> 6849.428416689:7f32f218a740:    name: 'type', value 'imfile'
> 6849.428418735:7f32f218a740: nvlstGetParam: name 'type', type 14,
> valnode->bUsed 0
> 6849.428421228:7f32f218a740: input param blk after inputProcessCnf:
> 6849.428422310:7f32f218a740: type:  'imfile'
> 6849.428426072:7f32f218a740: newInpInst (imfile)
> 6849.428427767:7f32f218a740: nvlstGetParam: name 'file', type 14,
> valnode->bUsed 0
> 6849.428429167:7f32f218a740: nvlstGetParam: name 'statefile', type 14,
> valnode->bUsed 0
> 6849.428430516:7f32f218a740: nvlstGetParam: name 'tag', type 14,
> valnode->bUsed 0
> 6849.428431814:7f32f218a740: nvlstGetParam: name 'severity', type 12,
> valnode->bUsed 0
> 6849.428433199:7f32f218a740: symbolic name: error ==> 3
> 6849.428440380:7f32f218a740: nvlstGetParam: name 'facility', type 11,
> valnode->bUsed 0
> 6849.428442722:7f32f218a740: symbolic name: local7 ==> 184
> 6849.428445955:7f32f218a740: nvlstGetParam: name 'persiststateinterval',
> type 6, valnode->bUsed 0
> 6849.428447160:7f32f218a740: input param blk in imfile:
> 6849.428448195:7f32f218a740: file:  '/var/log/test0/test0-00.log'
> 6849.428450652:7f32f218a740: statefile:  'stat-test0-00'
> 6849.428452985:7f32f218a740: tag:  'test0-00:'
> 6849.428455332:7f32f218a740: severity: 3
> 6849.428457542:7f32f218a740: facility: 184
> 6849.428459707:7f32f218a740: ruleset: (unset)
> 6849.428461880:7f32f218a740: readmode: (unset)
> 6849.428463930:7f32f218a740: maxlinesatonce: (unset)
> 6849.428465991:7f32f218a740: maxsubmitatonce: (unset)
> 6849.428468059:7f32f218a740: persiststateinterval: 100
> 6849.428471341:7f32f218a740: imfile: program error, non-handled param
> 'persiststateinterval'
> 6849.428589069:7f32f218a740: config parser: reached end of file
> /etc/rsyslog.d/48-nsm-test0.conf
>
> Thanks,
> Brandon
>
>
> -----Message Disclaimer-----
>
> This e-mail message is intended only for the use of the individual or
> entity to which it is addressed, and may contain information that is
> privileged, confidential and exempt from disclosure under applicable law.
> If you are not the intended recipient, any dissemination, distribution or
> copying of this communication is strictly prohibited. If you have
> received this communication in error, please notify us immediately by
> reply email to [email protected] and delete or destroy all copies of
> the original message and attachments thereto. Email sent to or from the
> Principal Financial Group or any of its member companies may be retained
> as required by law or regulation.
>
> Nothing in this message is intended to constitute an Electronic signature
> for purposes of the Uniform Electronic Transactions Act (UETA) or the
> Electronic Signatures in Global and National Commerce Act ("E-Sign")
> unless a specific statement to the contrary is included in this message.
>
> While this communication may be used to promote or market a transaction
> or an idea that is discussed in the publication, it is intended to provide
> general information about the subject matter covered and is provided with
> the understanding that The Principal is not rendering legal, accounting,
> or tax advice. It is not a marketed opinion and may not be used to avoid
> penalties under the Internal Revenue Code. You should consult with
> appropriate counsel or other advisors on all matters pertaining to legal,
> tax, or accounting obligations and requirements
> _______________________________________________
> 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