Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
100% corrupted records with awstats [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
audiodef
Advocate
Advocate


Joined: 06 Jul 2005
Posts: 4983

PostPosted: Mon Apr 23, 2012 4:36 pm    Post subject: 100% corrupted records with awstats [SOLVED] Reply with quote

I'm an awstats n00b. I could use a little help understanding what I need to do to fix this.

When I run

Code:

./awstats.pl -config=(domain) -update


I get 100% corrupted records and the same number of qualified records.

Running

Code:

./awstats.pl -config=(domain) -update -showcorrupted


gives me stuff like

Code:

Corrupted record line 10173 (record format does not match LogFormat parameter): (IP Address) - - [23/Apr/2012:16:26:19 +0000] "GET /index.php/tips-and-tricks/synthesizer-tricks HTTP/1.1" 200 8451


Why is this a corrupted record line?
_________________
Gentoo Studio: http://gentoostudio.org
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Linux 'Tude Tees: http://skreened.com/geektudetees

A cloud is evaporated water in the sky, thanks.


Last edited by audiodef on Mon Apr 23, 2012 8:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4557
Location: Spa (Belgium)

PostPosted: Mon Apr 23, 2012 6:59 pm    Post subject: Reply with quote

If you're logging Apache traffic then you need to change its logging option to "combined" logging format. It's in Apache configuration file for the virtual host, of which you want to watch the stats. There's still a way to tell awstats how the log line is formatted but IIRC it'll miss some fields that will maybe make it not work pretty well. Note that changing Apache logging format will only affect the lines that are logged *after* the change.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root”
Back to top
View user's profile Send private message
audiodef
Advocate
Advocate


Joined: 06 Jul 2005
Posts: 4983

PostPosted: Mon Apr 23, 2012 7:51 pm    Post subject: Reply with quote

Thanks Vinz. That helped me figure it out. 8)
_________________
Gentoo Studio: http://gentoostudio.org
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Linux 'Tude Tees: http://skreened.com/geektudetees

A cloud is evaporated water in the sky, thanks.
Back to top
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4557
Location: Spa (Belgium)

PostPosted: Mon Apr 23, 2012 9:58 pm    Post subject: Reply with quote

You're welcome :) .
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root”
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum