Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
6G apache2 access_log. What to do?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pavaveda
n00b
n00b


Joined: 20 Sep 2005
Posts: 2

PostPosted: Tue Dec 13, 2005 7:05 pm    Post subject: 6G apache2 access_log. What to do? Reply with quote

I'm trying to get Webalizer working (I had it working a few months ago), but I kept getting this error when I would run it:
Code:
Webalizer V2.01-10 (Linux 2.6.12-gentoo-r9) English
Error: Can't open log file /var/log/apache2/access_log


I looked at the size of the access_log:

Code:
# ls -lh /var/log/apache2/access_log
-rw-r--r--  1 root root 6.4G Dec 13 12:51 /var/log/apache2/access_log


8O

I have logrotate installed, but apparantly it's not rotating apache logs.

What should I do?
Back to top
View user's profile Send private message
Apreche
Guru
Guru


Joined: 18 Sep 2003
Posts: 506
Location: Beacon, NY

PostPosted: Tue Dec 13, 2005 7:37 pm    Post subject: Reply with quote

Delete or move your log file, depending on whether you want to save it or not.

Then restart apache2.

Now make sure logrotate works for real.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20589

PostPosted: Tue Dec 13, 2005 7:46 pm    Post subject: Reply with quote

With the log being that large, there are probably lots of "similar" messages that are causing the size.

I had a 9G system log, and the errors were due to my dsl router flooding broadcasts, and my firewall logging them as "other" packets. Once I filtered out those entries from the log, it was under 1M.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
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