LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-27-2009, 12:27 PM   #1
helpmhost
Member
 
Registered: Oct 2006
Posts: 43

Rep: Reputation: 15
Webalizer stats are out of order


Hi,

One of our website's webalizer stats are not in order. They are displayed in this order:

May 2009
Apr 2009
Mar 2009
Feb 2009
Jan 2008
Dec 2007
Nov 2007
Oct 2007
Sep 2008
Aug 2008
Jul 2008
Jun 2008

Notice the 2007 stuff and Jan 2008 are out of place.

I manually edited the html file and put them in order, but the very next time webalizer ran, it went back to this order. I searched around and can't find anything about sort order. Any ideas?

Thanks.
 
Old 05-28-2009, 08:00 AM   #2
MarkTren
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 1
Maybe is something wrong with system date?
 
Old 05-28-2009, 11:43 AM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@helpmhost: My WAG is that Webalizer sorts by month. If you review just the months (and ignore year for a moment), the values are properly sorted.

Also note that Webalizer by default only keeps a twelve month period of data. IMO, your data is incomplete/strange, since you have huge gaps in months.
 
Old 05-28-2009, 06:02 PM   #4
helpmhost
Member
 
Registered: Oct 2006
Posts: 43

Original Poster
Rep: Reputation: 15
I don't think it is the system date since this is the only site on this server whose stats are not in proper order.

These stats are updated incrementally since we rotate the logs daily. Is there a way to remove all the entries prior to a specific date? That way it will look proper and we can just say that we don't have proper stats for those prior dates.

Thanks.
 
Old 05-28-2009, 07:33 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
First, take a backup of your webalizer's output directory (/var/www/usage in my case) and its "state" directory (/var/lib/webalizer in my case). Do not skip this step; if you break something, you're going to want an old baseline to be able to get back to.

Next, read through the webalizer(1) manpages. At a quick glance, a couple items stand out in speaking to your question:
Quote:
A history file is searched for in the current directory (out-
put directory) and read if found. This file keeps totals for
previous months, which is used in the main index.html HTML
document. Note: The file location can now be specified with
the HistoryName configuration option.
and, a warning FWIW:
Quote:
Some special precautions need to be taken when using the incremental
run capability of The Webalizer. Configuration options should not be
changed between runs, as that could cause corruption of the internal
data stored.
It seems like you could edit the history file to include only the totals you want. I'm not sure what webalizer would do with that -- he may delete old html/image files after seeing the updated history file, or you may have to do it yourself.

This will require some research and tinkering, so if you don't have the patience for that it is probably better to leave it alone. (Me, I'm a tinkerer.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Webalizer stats are not updating the html file helpmhost Linux - Server 4 05-29-2009 02:06 PM
Making Webalizer Stats Public PensJunkie Linux - Software 2 06-07-2005 10:40 AM
What programs in the command line can I use in order to see the PC stats??? Shagrath239 Slackware 3 02-17-2005 03:42 PM
Webalizer Stats + language problems slyomatic Linux - General 0 05-12-2004 10:37 AM
DU Stats WhiteWolf Linux - Networking 0 10-01-2003 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration