View previous topic :: View next topic |
Author |
Message |
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Thu Jan 22, 2004 1:27 pm Post subject: Log Analyzing Software + log rotation... |
|
|
I'm currently using AWstats for my log analysis and I find it quite competant. My problem is I also like to go through the logs by hand now and then, see what recent trends AWstats misses. The log file becomes unmanagably large, often hitting 50MB in a month, and if I get slashdotted, clearing 300MB.
I'd like to start a new logfile every time the daily stats are generated, but I cannot delete the logfile while Abyss is running. Is there any way to copy and reset the logfile without killing the server every time? Ideally I'd like to have it run as part of the stats generating batchfile.
Any suggestions? |
|
Back to top |
 |
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Jan 25, 2004 4:39 pm Post subject: Re: Log Analyzing Software + log rotation... |
|
|
Lawrence,
You can copy the current log to another file without stopping Abyss. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Thu Jan 29, 2004 8:42 am Post subject: |
|
|
Yes, I realize this, but it doesn't help me reduce the size of the current logfiles. In order to maintain a reasonably sized logfile I have to, every month, stop the server, load the log, trim last month's entries (And save them as a separate file, but that's my own preference) and resave the new shorter logfile. This is a fair amount of effort when your logfile regularly amounts to over a million lines per month. It'd be super handy if there was a way to have aprelium rotate them on schedule. |
|
Back to top |
 |
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Thu Jan 29, 2004 9:23 am Post subject: |
|
|
Is there a particular time of day that is very low in hits for your site ? I'm thinking schedule a batch file to kill Abyss, quickly rename the old log and restart Abyss... The site would only be offline for a few seconds, ten tops. |
|
Back to top |
|
 |
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Thu Jan 29, 2004 9:30 am Post subject: |
|
|
That would work very well, can you suggest a way to kill and restart abyss from the command line? |
|
Back to top |
 |
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Thu Jan 29, 2004 9:51 am Post subject: |
|
|
Certainly can. PSKill from the PSTools suite, just name the process and it will kill it...
D:\Documents and Settings\Administrator>pskill abyssws
PsKill v1.03 - local and remote process killer
Copyright (C) 2000 Mark Russinovich
http://www.sysinternals.com
2 processes named abyssws killed.
http://www.sysinternals.com/ntw2k/freeware/pstools.shtml
I was just in the middle of looking for my batch file that puts the month into an environment variable so you could autorename it abyss.january.2004.log etc... |
|
Back to top |
|
 |
|