LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2006, 05:50 PM   #1
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
awstats


Hey, quick and simple question.

How do i put the logfile parameter option so i can read from 2 or 3 servers that are being load balanced by a Cisco CSS? The shitty manual just says cluster support and that's it, and the example in the conf file just says '.../logresolvemerge.pl *.log |'. This tells me nothing.

For instance, let's say i got web servers 10.0.0.5 and 10.0.0.6, how do i put that parameter there?

Thanks in advanced.
 
Old 09-05-2006, 11:16 AM   #2
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
I don't have a way to try what i'm saying but I believe logresolve only sorts records on the fly to be analyzed from several log files at the same time. So what you shoul provide in the config is

path_to_log_resolve/logresolvemerge.pl file1_in_10.0.0.5.log file2_in_10.0.0.6.log ... >finallog.log

and then tell awstats to analize that finallog.log

like i said haven't try it cause I have no servers using clustering.
 
Old 09-05-2006, 09:47 PM   #3
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Ou, ok, thanks man. And once again my point is proven. The shitty manual just doesn't specify if it does that on the fly or if you have to throw the resulting merged file into another one, and then have the config file specify that final log for awstats to analize. Anyways, i'll sort it out with more googling and hopefully anybody will throw me a bone here. Appreciate your help man, cool.
 
Old 09-06-2006, 04:23 PM   #4
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
keep me posted if that works for you. thanks.
 
Old 09-07-2006, 05:09 AM   #5
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
This piece of ...

Another thing, i sorted some other problems here. But now, apparently, awstats does not like having * characters when specifying the logfile parameter. Or maybe i am doing something else wrong. And yeah man, i'll keep you posted. It's kinda of intriguing trying to find out things by yourself, knowing that the manual is worth nothing. Jejejeje.
 
Old 09-07-2006, 05:25 AM   #6
keyF
Member
 
Registered: Jan 2006
Location: Moscow
Distribution: Debian, RHEL, FreeBSD, CentOS
Posts: 38

Rep: Reputation: 15
yes, awstats does not support wildcards in logfile parameter. instead of this, when you want to specify mutliple log files you should use following syntax:

LogFile="..bla-bla/logresolvemerge.pl logfile1 logfile2 logfile3 | "

in your case, when you want to analyse log files from multiple servers at one place, i think it will be simplier to write a script which will do the following:
1. sync all log files to pc where awstats analysis will perform. you can do it with rsync for example...
2. if you like the idea, you can merge you log files in one huge - ..bla-bla/logresolvemerge.pl logfile1 logfile2 logfile3 > huge-log-file.log
3. run awstats analysis.
 
Old 09-07-2006, 05:28 AM   #7
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Mighty helpfull info friend!!! I'll be sure to check all this at once. I'll post back to this same reply with the updates of my findings. You seem to know your stuff man, cool and thanks a lot.
 
Old 09-07-2006, 06:51 AM   #8
keyF
Member
 
Registered: Jan 2006
Location: Moscow
Distribution: Debian, RHEL, FreeBSD, CentOS
Posts: 38

Rep: Reputation: 15
i've completed configuring awstast for my sites recently , that is why i'm able to advice you something.

good luck
 
Old 09-08-2006, 09:58 PM   #9
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
Maybe you two can get together and mail awstats with an example, it's a pain in the tail trying to find out all this on your own.
 
Old 09-12-2006, 03:24 AM   #10
keyF
Member
 
Registered: Jan 2006
Location: Moscow
Distribution: Debian, RHEL, FreeBSD, CentOS
Posts: 38

Rep: Reputation: 15
maybe we should think about it
 
Old 09-24-2006, 03:47 AM   #11
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
You guys are probably going to kill me.

I installed awstats for windows, on another server. Made a script to merge all log files for each site into one, and have this one file fed to the awstats perl command.

It's working nice now. I wish i could have done that with linux.
 
Old 09-25-2006, 12:36 AM   #12
keyF
Member
 
Registered: Jan 2006
Location: Moscow
Distribution: Debian, RHEL, FreeBSD, CentOS
Posts: 38

Rep: Reputation: 15
and what is your problem on Linux? as i know awstats is natively created for Linux, so on Win you should expect more problems. And if you done it on Windows you will do it on Linux too
 
Old 09-25-2006, 01:51 AM   #13
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
It's quite simple: the server that runs linux, the server running the company's internal DNS, is having some problems, and the main thing is that named service stops resolving, so my boss, which is not linux savy, decided to move that to windows. So, since i haven't been to fix it yet, i am screwed, now i got no more linux machines to fix.

That's the reason why i installed awstats on windows. Pretty shitty situation, and i feel pretty bad cause i don't know exactly how to fix this problem, mainly because i don't know where to start looking. Linux is a bit complicated for me still, and i've been using it for a bit more than 2 years now, and it still puzzles me on a daily basis.

Any whoooo.... i hope one day i can become one of you guys, linux savys, that would rock.

Thanks for the help.
 
Old 11-24-2006, 10:09 AM   #14
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Hey, i am back here for a problem i am having with awstats. As i stated here in the previous messages, i installed awstats on windows. Not anymore, i got it up and running on my linux box for testing. Well, turns out that the information displayed by awstats is completely wrong. Here's an output of what it shows when performing the analysis:
Code:
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 491197
 Found 6035 dropped records,
 Found 370597 corrupted records,
 Found 0 old records,
 Found 114565 new qualified records.
Note the extremely large amount of corrupted records. Amazingly, i followed the exact instructions in making the log files in IIS suitable for awstats to analyze. You know, you gotta select some fields in specific (date time c−ip cs−username cs−method cs−uri−stem
cs−uri−querysc−status sc−bytes cs−version cs(User−Agent) cs(Referer)sc−status sc−bytes cs−version cs(User−Agent) cs(Referer)) according to the official pdf manual.

I first noticed that there was something wrong because for instance, i got 2300 hits for only 4 visitors. That is just not right. And after that, i installed two other log file analyzers, and they showed very similar results; results that made a lot of more sense and showed a lot more information.

Thanks in advanced for the help guys.
 
Old 11-25-2006, 05:06 PM   #15
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
I would suggest check very carefuly that the log your log files and the log awstats expects to analize is the same, check the config file and the log files, they should match, you should also check your logs to see the hits, because there are some errors that awstats read as corrupted but you can tell it not to.
 
  


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
awstats comprookie2000 Linux - Security 2 05-01-2005 05:55 PM
Awstats question tommytomato Linux - Software 0 09-24-2004 07:00 AM
Awstats error tommytomato Linux - General 0 09-11-2004 07:59 PM
awstats ftpd tommytomato Linux - General 1 09-09-2004 12:35 AM
AWstats WiWa Linux - Software 11 08-17-2003 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:08 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
Open Source Consulting | Domain Registration