[TNM] Problems with logfile name and POSIX escape syntax

Sari Thiele sari.thiele at usit.uio.no
Wed Apr 9 18:06:55 UTC 2014


No,  unfortunately that does not work in my setup, because we do a 
logration once in a month
and so the file name stays the same for a month.
I tried it with

postgresql-%Y-%m-%d_%H%M%S.csv

but tail_n_mail does not find it.
The program looks for a file with the date/time when it was started, it 
does not look for a file
in the past. That is the reason why I tried it with a regex.


On 09.04.2014 17:22, Greg Sabino Mullane wrote:
> 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.
>

-- 
Sari Thiele
UiO/USIT/IT-drift/TD/DBD
  



More information about the TNM mailing list