Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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.
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.
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:
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.
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.
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.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.