[TNM] (.*) regex doesn't match
Greg Sabino Mullane
greg at endpoint.com
Mon Oct 15 15:43:37 UTC 2012
On Sat, Oct 13, 2012 at 11:46:49PM +0300, Gabi Am wrote:
> Hi guys,
>
> I want to monitor a* log file* that contains lines like this one:
>
>
> > 2012-10-13/17:51:02.299/EEST [MyClass] ERROR Failed deleting config file.
>
>
> My *config file* "tnm.config.txt" contains the following lines:
>
> EMAIL: gabi.am86 at gmail.com
> > MAILSUBJECT: Errors
> >
>
>
> INCLUDE: (.*)
> > INCLUDE: .*ERROR.*
> >
>
>
> FILE1: /opt/myproject/var/log/general.log
> > LASTFILE1: /opt/myproject/var/log/general.log
>
>
> No spaces after the regex but I also tried it with spaces, as the example.
> And I would like to match those lines in the log file that contain "ERROR"
> (because that didn't work I also tried to match everything with *(.*)*regex).
>
> Command line:
>
> perl tail_n_mail tnm.config.txt --mailmode=smtp --mailserver=ssl://
> smtp.gmail.com --mailuser=myuser at gmail.com --mailpass=pass --mailport=465
...
> Is this mail server correct: "ssl://smtp.gmail.com"? It would be very
> useful to have an example on the wiki page.
No, I think you just want --mailserver=smtp.gmail.com
Wiki updates are welcome :)
--
Greg Sabino Mullane greg at endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <https://mail.endcrypt.com/pipermail/tnm/attachments/20121015/5ae0d9b8/attachment.sig>
More information about the TNM
mailing list