[TNM] Problems with logfile name and POSIX escape syntax

Greg Sabino Mullane greg at endpoint.com
Wed Apr 9 15:22:10 UTC 2014


On Wed, Apr 09, 2014 at 11:21:36AM +0200, Sari Thiele wrote:
> Hi!
> 
> I am trying to set up tail_n_mail with a logfile name
> "postgresql-%Y-%m-%d_%H%M%S.csv".
> The documentation states that it is possible to define the name with
> POSIX escape syntax.
> But if I use f.ex. FILE:
> '/<path>/postgresql-[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}_[0-9]\{6\}.csv',
> it does not work.

It should work if you use exactly the same syntax as Postgres. In other 
words, use postgresql-%Y-%m-%d_%H%M%S.csv.

-- 
Greg Sabino Mullane greg at endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Digital signature
URL: <https://mail.endcrypt.com/pipermail/tnm/attachments/20140409/fce73393/attachment.sig>


More information about the TNM mailing list