LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2011, 02:56 AM   #1
Mustafa^Qasim
Member
 
Registered: Dec 2005
Location: Lahore, PK
Distribution: Fedora 14
Posts: 105

Rep: Reputation: 16
Question Awstat is dropping all records


Hi,

I am using awstat for a website. It's working fine. On the webserver I made a new virtual host for the same website with some addition in URL. I made a separate log file for this URL and tried to process it also in awstat but for it's log file awstat is dropping all records.

On webserver log format is same for both logs files. On awstat the config file is same for both logs except the log path line of course .

Why awstat isn't able to process the same log format with the same config file what is working for the previous logs
 
Old 03-10-2011, 04:47 PM   #2
dr_agon
Member
 
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu LTS
Posts: 101
Blog Entries: 12

Rep: Reputation: 26
Hi,

I have just configured awstat for analysing 2 log files, and it works OK. Maybe if you post the key config options (LogFile, DirData), listing of your DirData directory and command you use to generate statistics - someone would help.
 
Old 03-10-2011, 06:44 PM   #3
rjliebenberg
LQ Newbie
 
Registered: Jul 2003
Location: Los Angeles
Distribution: CentOS
Posts: 14

Rep: Reputation: 0
when you call awstats.pl are you specifying the config to pickup?

# perl /usr/lib/cgi-bin/awstats.pl -config=<VHOST NAME> -update
 
Old 03-10-2011, 11:04 PM   #4
Mustafa^Qasim
Member
 
Registered: Dec 2005
Location: Lahore, PK
Distribution: Fedora 14
Posts: 105

Original Poster
Rep: Reputation: 16
parameters from working config file

LogFile="/usr/local/awstats/logresolvemerge.pl /usr/local/apache/logs/webstats_log_portal_* |"
LogType=W
LogFormat=1
UseFramesWhenCGI=1
LogSeparator=" "
DirData="/var/lib/awstats"
DNSLookup=2
DirCgi="/cgi-bin"
AllowToUpdateStatsFromBrowser=1
AllowFullYearView=3
BuildHistoryFormat=text
BuildReportFormat=html



The new file is copy of this file with just the path of new log file

LogFile="/usr/local/awstats/logresolvemerge.pl /usr/local/apache/logs/webstats_log_new_portal_* |"
 
Old 03-11-2011, 01:18 PM   #5
dr_agon
Member
 
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu LTS
Posts: 101
Blog Entries: 12

Rep: Reputation: 26
Look what files are created in your DirData.

Check the command you use for generation of statistics, as advised by rjliebenberg.

Post the whole output of awstats.pl when it says it drops all records.
 
Old 04-19-2011, 08:50 AM   #6
Mustafa^Qasim
Member
 
Registered: Dec 2005
Location: Lahore, PK
Distribution: Fedora 14
Posts: 105

Original Poster
Rep: Reputation: 16
This issue was resolved. The log format on the app server was altered. Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] MX Records / A Records / CNAME Records - Advice Please fusion1275 Linux - Newbie 15 01-18-2011 05:06 AM
problem with installing awstat ashraflinux1@gmail.com Linux - Server 2 01-08-2010 10:28 AM
Reading caller detail records(CDR ) records eliufoo Linux - Networking 2 12-17-2008 12:31 AM
Awstat installation issue time_trapper Linux - Software 3 04-01-2008 10:32 PM
awstat question yongitz Linux - Software 0 11-02-2006 05:53 AM


All times are GMT -5. The time now is 06:33 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration