<div dir="ltr"><div><div><div><div><div><div><div><div>Hi Vincent,<br><br></div>I am working on your date-parser() stuff that was integrated to syslog-ng-incubator recently. It is great stuff, so I&#39;d like to make it part of the main syslog-ng codebase.<br><br></div>I am doing some cleanups, which you can follow at the f/date-parser branch in <a href="http://github.com/balabit/syslog-ng">github.com/balabit/syslog-ng</a><br><br></div>I&#39;d have a question though: I can see the date-offset() option for date parser, which seems to skip the specified number of characters in the input.<br><br></div>Can you please describe the usecase behind that? I&#39;d be reluctant to add such an option to a parser (as none of the other have such an option), and it should be possible to do the same using template functions, e.g. something like this:<br><br></div>date-parser(template(&quot;$(substr $MSG 5)&quot;));<br><br></div>This would similarly skip the first 5 characters.<br><br></div>If this addresses your original use-case, I&#39;d drop the date-offset() option.<br><br></div>Thanks in advance,<br clear="all"><div><div><div><div><div><div><div><div><div><div><div class="gmail_signature"><div dir="ltr">-- <br>Bazsi<br></div></div></div>
</div></div></div></div></div></div></div></div></div></div>