Log Analyzing Software + log rotation...

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Lawrence
-


Joined: 16 Jan 2003
Posts: 207
Location: Brisbane, AU

PostPosted: Thu Jan 22, 2004 1:27 pm    Post subject: Log Analyzing Software + log rotation... Reply with quote

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 View user's profile Send private message Visit poster's website ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Jan 25, 2004 4:39 pm    Post subject: Re: Log Analyzing Software + log rotation... Reply with quote

Lawrence,

You can copy the current log to another file without stopping Abyss.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Lawrence
-


Joined: 16 Jan 2003
Posts: 207
Location: Brisbane, AU

PostPosted: Thu Jan 29, 2004 8:42 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website ICQ Number
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Thu Jan 29, 2004 9:23 am    Post subject: Reply with quote

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 View user's profile Send private message
Lawrence
-


Joined: 16 Jan 2003
Posts: 207
Location: Brisbane, AU

PostPosted: Thu Jan 29, 2004 9:30 am    Post subject: Reply with quote

That would work very well, can you suggest a way to kill and restart abyss from the command line?
Back to top View user's profile Send private message Visit poster's website ICQ Number
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Thu Jan 29, 2004 9:51 am    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group