Hi!

Try with this:
\d+-\d+-\d+\w\d+:\d+:\d+\+\d+:\d+ CRIT Not valid template file\:

Best regards
woodspeed

2012. február 6. 16:26 Daniel Cid írta, <daniel....@gmail.com>:

> Hey,
>
> What are you trying to decode there? And how will you use this information?
>
> If you will not use the decoded information anywhere, just write a
> rule to ignore
> or do what you need with this event...
>
> Thanks,
>
> --
> Daniel B. Cid
>
>
> On Mon, Feb 6, 2012 at 10:55 AM, kumaig <goj...@gmail.com> wrote:
> > Yes i have. Only solution that i find that worked for me is to change
> > log format like this..
> > 2011-12-28 08:30:59+00:00 CRIT Not valid template file:frontend/base/
> > default/template/exacttarget/top_sub.phtml
> > and with this decoder everything works well...
> > <decoder name="magentoCRIT">
> >  <prematch>^\d+-\d+-\d+\s\d+:\d+:\d+\p\d+:\d+\sCRIT</prematch>
> > </decoder>
> > <decoder name="magentoCRIT-alert">
> >  <parent>magentoCRIT</parent>
> >  <regex offset="after_parent">(\.+)</regex>
> >  <order>extra_data</order>
> > </decoder>
> > But with this log format no luck.
> > 2011-12-28T08:30:59+00:00 CRIT Not valid template file:frontend/base/
> > default/template/exacttarget/top_sub.phtml
> > no luck...
> >
> > Thanks dan for quick response.
> >
> > On Feb 6, 12:39 pm, "dan (ddp)" <ddp...@gmail.com> wrote:
> >> On Thu, Feb 2, 2012 at 11:11 AM, kumaig <goj...@gmail.com> wrote:
> >> > it does not work with T either :(
> >>
> >> Have you tried feeding it through ossec-logtest? The date may be
> >> getting decoded out.
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> > On 2 феб, 14:07, "dan (ddp)" <ddp...@gmail.com> wrote:
> >> >> On Wed, Feb 1, 2012 at 7:59 AM, kumaig <goj...@gmail.com> wrote:
> >> >> > I have tried for a few weeks to decode one magento log with no
> luck. I
> >> >> > have searched more then 2 weeks for solution for this problem. If
> >> >> > anyone can help i appreciate it.
> >> >> > the log is :
> >> >> > 2011-12-28T08:30:59+00:00 CRIT Not valid template
> file:frontend/base/
> >> >> > default/template/exacttarget/top_sub.phtml
> >>
> >> >> > i have made several decoders but none worked for this log.
> >>
> >> >> > <decoder name="magentoCRIT">
> >> >> > #<prematch>^\d\d\d\d-\d\d-\d\d\w\d\d:\d\d:\d\d\p\d\d:\d\d\.*</
> >> >> > prematch>
> >> >> > #<prematch>^\d+-\d+-\d+\w\d+:\d+:\d+\p\d+:\d+ CRIT</prematch>
> >> >> > #<prematch>CRIT</prematch>
> >> >> > <prematch>\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\. CRIT</
> >> >> > prematch>
> >> >> > </decoder>
> >>
> >> >> > My gues is that date format is making some sort of error.. because
> if
> >> >> > i try format like this
> >>
> >> >> > 2011-12-28 08:30:59+00:00 CRIT Not valid template
> file:frontend/base/
> >> >> > default/template/exacttarget/top_sub.phtml
> >>
> >> >> > it finds modified decoder without \w.
> >>
> >> >> > Thank you all!
> >>
> >> >> Why use the \w? Isn't it always a "T"?
>



-- 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.14 (MingW32)

mQENBEygoBUBCADF8DeHD7XXFFyVvJoMOx1Sh01dUprmrfWwiANwN4SXQCaMEXc2
+4y/qg92iGOQR/5Z5DQXNB+2y5SyIo95ZbM/4+RwMgt4Km3QD7w7sIXY3gQNPrT6
5+h5lH6lLmV0K68oIlOBU1wLLVky+gHAQLi3KMKWm10KF0drJv6Ngl+UBOHz/ntm
y1oLs/iQlbFfqPj/2QnTO4Lqv6EpEqexjzbsO4ieD6BHhN+TCQYmrN7W+l3vxjFQ
stdwJNEph7gNnXsVGTgDdwz6WpC8SNgOMe2FdIB2dRwQGbtdyF/iC+vMyc/woSnj
vDpE5Bf9C16eErwRE3UMTRpy+Qf5rN2ssen5ABEBAAG0I1Zpa3RvciBHYXpkYWcg
PHdvb2RzcGVlZEBnbWFpbC5jb20+iQE4BBMBAgAiBQJMoKAVAhsDBgsJCAcDAgYV
CAIJCgsEFgIDAQIeAQIXgAAKCRB9JI3LTCQ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