[TNM] Problems with logfile name and POSIX escape syntax

Greg Sabino Mullane greg at endpoint.com
Mon Apr 28 16:18:20 UTC 2014


On Tue, Apr 22, 2014 at 07:35:53AM +0200, Sari Thiele wrote:
> >WARNING! Skipping non-existent file "log/postgresql-2014-04-10_093905.csv"
> >Too many loops (10081): bailing

I'm wondering if simply going back further will allow it to work. Try using 
the latest git version, or just change the script like so:

--- a/tail_n_mail
+++ b/tail_n_mail
@@ -494,7 +494,7 @@ sub pick_log_file {
             ## We're going to walk backwards, 30 minutes at a time, and gather up
             ## all files between "now" and the "last"
             my $timerewind = 60*30; ## 30 minutes
-            my $maxloops = 24*2 * 7 * 30; ## max of 30 days
+            my $maxloops = 24*2 * 7 * 60; ## max of 60 days



-- 
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/20140428/15b0eacd/attachment.sig>


More information about the TNM mailing list