Hi,

I recently changed a bit in my rotate script in order to rotate it closer to
midnight. I start the script at 23:59 to get the current date in some
variables. As of the 17th I have added a "sleep 1m" to get the "rotation"
for the logfile at midnight.

Somehow the sniffer log still covers the same timepriod, I think. Looking at
the log for the 16th, it starts at 15-jan-2005, 23:00:09 and stops at
16-jan-2006, 22:58:18.
The log for the 18th, it starts at 17-jan-2005, 23:01:56 and stops at
18-jan-2005, 22:57:37. Still an hour short for the day. I'm not running any
persistent instances, we only process aboy 4K messages a day.

Am I doing something wrong, I want my logfile for a certain day to contain
the log for that day, from midnight till midnight.

My log for the job, renaming the <id>.log file to snf<mmdd>.log occurs just
before the ftp upload, which at night from the 17th to the 18th happens
indeed one minute later.
LOGROT.LOG
2005/01/15 23:59:00 : Running logrotate
2005/01/15 23:59:00 : Starting ftp upload
2005/01/16 00:12:11 : Finished ftp upload
2005/01/16 00:12:11 : Ready rotating logs
2005/01/16 23:59:00 : Running logrotate
2005/01/16 23:59:00 : Starting ftp upload
2005/01/17 00:12:14 : Finished ftp upload
2005/01/17 00:12:14 : Ready rotating logs
2005/01/17 23:59:01 : Running logrotate
2005/01/18 00:00:01 : Starting ftp upload
2005/01/18 00:13:12 : Finished ftp upload
2005/01/18 00:13:12 : Ready rotating logs
2005/01/18 23:59:00 : Running logrotate
2005/01/19 00:00:01 : Starting ftp upload
2005/01/19 00:13:11 : Finished ftp upload
2005/01/19 00:13:11 : Ready rotating logs

snf0115.log
<idnum> 20050114230001 D4ee10334027cb259.SMD 125 16 Match 236533 60 841 880
34
<idnum> 20050114230001 D4ee10334027cb259.SMD 125 16 Match 271368 61 1508
1526 34
[...]
<idnum> 20050115225621 D9f8e16bb0206d48a.SMD 125 0 Final 273425 61 0 2441 34
<idnum> 20050115225659 D61a81450b30.GSC 125 0 Clean 0 0 0 2126 31

snf0116.log
<idnum> 20050115230009 Da076099d015660ce.SMD 125 0 Clean 0 0 0 3886 38
<idnum> 20050115230143 Da0d509ac0156d108.SMD 125 16 Match 215399 63 1 54 39
[....]
<idnum> 20050116225610 D3401d7f0c2c.GSC 140 0 Clean 0 0 0 4823 30
<idnum> 20050116225818 D34211fc0c70.GSC 188 0 Clean 0 0 0 1265 31

snf0117.log
<idnum> 20050116230728 Df3af11310234769b.SMD 125 47 Match 272652 57 1849
1877 37
<idnum> 20050116230728 Df3af11310234769b.SMD 125 47 Match 272654 57 2023
2088 37
[....]
<idnum> 20050117225648 D42a90f2801a6f844.SMD 203 0 Clean 0 0 0 2704 38
<idnum> 20050117225756 D06817510b08.GSC 125 0 Clean 0 0 0 1348 31

snf0118.log
<idnum> 20050117230156 D43e008580160b509.SMD 250 46 White 73573 0 1 497 41
<idnum> 20050117230156 D43e008580160b509.SMD 250 46 Final 73573 0 0 12715 41
[...]
<idnum> 20050118225648 D58d6a4d0a98.GSC 141 0 Clean 0 0 0 2536 34
<idnum> 20050118225737 D58e27340b80.GSC 218 16 Clean 0 0 0 9468 33



Groetjes,

Bonno Bloksma

---
[E-mail scanned at tio.nl for viruses by Declude Virus]


This E-Mail came from the Message Sniffer mailing list. For information and 
(un)subscription instructions go to 
http://www.sortmonster.com/MessageSniffer/Help/Help.html

Reply via email to