quick question with awstats and my log file of 270MB
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
quick question with awstats and my log file of 270MB
Hi.
I was wondering how I can get this done. I reinstalled my awstats and deleted my awstats data. How do I pull the data from my original access_log which is around 270MB in size.
Any suggestion? I tried updating awstats but it's timing out and I'm getting an internal server error which I assume is from the 270MB access_log size.
I haven't played with different log formats but the reason the data isn't showing up yet is that it does all of the processing in memory and will write it out when it has finished.
ahh.... i'll wait it and update you when process is done.
if anyone can chime it with getting logformat=1 working instead of logformat=4 would be great. from my existing data with my other sites (all logformat=4), and from what i've read online, logformat-4 does not show Browsers, OS, keywords, etc.
Just to cover all of our bases did you restart apache after configuring that log style? Also, if the log file was created in the old format I don't think it's possible to convert it to a new style, but all new log entries will have the information you want.
actually that is my existing logformat settings in my httpd.conf. i have not changed it. and from the looks of that, i should be able to use logformat=1 right?
I'm not familiar with the logformat directive but I do know that specifying a log file with the logformat works: CustomLog /var/www/localhost/log/apache/production.log combined
hmmm....so i should have the same logformat which is 1 (combined) in awstats based on my post above. that's weird.
also, if I change my logformat, will it break awstats or will it break anything? how should I change my formatting to suit awstats logformat=1 without breaking existing data or beter yet without breaking the box
Those are excellent questions. Is the logformat coming from awstats or apache that you're having difficulty with (I've been probably wrongly assuming it's an apache issue)?
Actually I'm not so sure to be honest. I assumed it's apache as well, since AWSTATS only have 1 to 4 general options that I have there, but apache logformat has a bunch of syntax. Also, AWSTATS just pulls the apache logs and need to match with apache's format. so for awstats to work on 4 means apache is somehow configured that way despite in httpd saying it's combined (logformat=1).
yes that was what i was concerned with. if i set awstats to logformat=1 it does not work. i have to set it in awstats as logformat=4. however, as from my previous post my apache is configured for combined logging, which i believe is equivalent to logformat=1.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.