View previous topic :: View next topic |
Author |
Message |
pavaveda n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Sep 2005 Posts: 2
|
Posted: Tue Dec 13, 2005 7:05 pm Post subject: 6G apache2 access_log. What to do? |
|
|
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 |
I have logrotate installed, but apparantly it's not rotating apache logs.
What should I do? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Apreche Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/19378161633fb2344c9b4da.jpg)
Joined: 18 Sep 2003 Posts: 506 Location: Beacon, NY
|
Posted: Tue Dec 13, 2005 7:37 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pjp Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1154772887439692d88303b.jpg)
Joined: 16 Apr 2002 Posts: 20589
|
Posted: Tue Dec 13, 2005 7:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|