Welcome, Guest
Please Login or Register.
Lost Password?
Re:gaps in apache log files / awstats (1 viewing)
Post Reply

TOPIC: Re:gaps in apache log files / awstats

#16486
terryh (User)
Posts: 17
graphgraph
gaps in apache log files / awstats 2008/09/23 14:52  
Hi I'm running:

Virtualmin version 3.61.gpl (GPL)
Webmin version 1.430
Debian Linux 4.0

I seem to be getting gaps in the apache log files for 2 and 3 days at a time.
It's now the 24th of Sept. I have no log entries at all for the 22nd, 23rd and so far the 24th.
I'm also missing logs for the 15th and 16th of Sept. I know for sure that apache is serving up pages. What could cause this type of behaviour?
It looks like this is the case for all the virtual severs on the system, not just one.

I have recently upgraded from 3.53 to 3.61 I'm pretty sure all was ok before that.

Any ideas?
Thanks for any help offered.

Regards Terry.
  The administrator has disabled public write access.
#16491
terryh (User)
Posts: 17
graphgraph
Re:gaps in apache log files / awstats 2008/09/23 17:47  
I found the problem I think.

Docroot /var/www/ was assigned a specific IP rather than "any".
I changed that and logging seems to have commecnced in the proper places for each VirtualServer now.
  The administrator has disabled public write access.
#16503
sciallo (User)
Posts: 16
graphgraph
Re:gaps in apache log files / awstats 2008/09/24 10:08  
Please confirm that was the problem, I also have BIG gaps in my logs and have had them for a long time. ( http://rpwebworks.com/awstats ) I will try to look at what you mentioned, but I fail to understand why that would cause all the individual logs for virtual servers to be incorrect.
  The administrator has disabled public write access.
#16504
sciallo (User)
Posts: 16
graphgraph
Re:gaps in apache log files / awstats 2008/09/24 10:28  
I checked and my /etc/apache2/sites-enabled/000-default file has
NameVirtualHost *:80
<VirtualHost *:80>
for the /var/www virtualhost no other entries anywhere, I'm guessing my problem lays somewhere else. Any hint anyone?
  The administrator has disabled public write access.
#16509
ronald (User)
Posts: 504
graphgraph
Re:gaps in apache log files / awstats 2008/09/24 14:44  
<VirtualHost *:80>

as far as I have learned not having an IP in there is not good.
<VirtualHost 123.123.123.123:80> so that apache knows where to listen
  The administrator has disabled public write access.
#16513
terryh (User)
Posts: 17
graphgraph
Re:gaps in apache log files / awstats 2008/09/24 15:29  
It's been about 24 hours since I made the change mentioned in post #2. I have 16 virtual servers, not all of them have traffic, but the ones that do are now being logged to the correct places /home/sitename/logs

Hopefully there's a picture attached. It shows 2 lines assigned to ANY address, ANY port. When the logging was not working correctly, there was an IP address in the line that has the document root set as "/var/www"

I have no idea how or why the change I made has fixed the logging errors, but it seems that it has.

Previously, apache was trying to write logs to /htdocs
I don't think there are any directories named htdocs on my server.
  The administrator has disabled public write access.
#16514
terryh (User)
Posts: 17
graphgraph
Re:gaps in apache log files / awstats 2008/09/24 15:31  
Picture was too big.
Re-trying....
  The administrator has disabled public write access.
#16517
sciallo (User)
Posts: 16
graphgraph
Re:gaps in apache log files / awstats 2008/09/24 17:16  
hmm, I'm not sure. In my setup the only virtual hosts that *don't* have 'any' in the ip address are the ones that have a dedicated IP address. Default server has 'Automatic' for the document root and 'Any' for the port all other ports are set to 80 or 443, I don't have any entry with Automatic for the server name. (And I still fail to understand how this would affect the logs of each of my virtual servers.
  The administrator has disabled public write access.
#16553
terryh (User)
Posts: 17
graphgraph
Re:gaps in apache log files / awstats 2008/09/25 16:44  
I also could not see how the change I made would make any difference to the virtual servers, but I have 2 full days of stats now on every virtual server, and no errors from apache trying to write logs to directories that don't exist.
  The administrator has disabled public write access.
#16695
terryh (User)
Posts: 17
graphgraph
Re:gaps in apache log files / awstats 2008/09/29 09:33  
It seems I have been totally wrong about this. My logs just stopped working again!!!
I have tracked it to the time when my logs get rotated. I'm not sure what's happening exactly, but whatever it is, it's dead on rotation time @ 06:27
I'm still digging, but the stuff I posted previously is nothing to do with it. Sorry.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.