[TNM] Problems with logfile name and POSIX escape syntax

Sari Thiele sari.thiele at usit.uio.no
Thu Apr 10 07:46:46 UTC 2014


correction:

It looks like that is does work with postgresql-%Y-%m-%d_%H%M%S.csv, but 
now I get this message:

WARNING! Skipping non-existent file "log/postgresql-2014-04-10_093905.csv"
Too many loops (10081): bailing

Does there exist a parameter or another solution that can fix it?



On 04/09/2014 08:06 PM, Sari Thiele wrote:
> 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