| View previous topic :: View next topic |
| Author |
Message |
audiodef Advocate


Joined: 06 Jul 2005 Posts: 4983
|
Posted: Mon Apr 23, 2012 4:36 pm Post subject: 100% corrupted records with awstats [SOLVED] |
|
|
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 |
|
 |
VinzC Advocate


Joined: 17 Apr 2004 Posts: 4557 Location: Spa (Belgium)
|
Posted: Mon Apr 23, 2012 6:59 pm Post subject: |
|
|
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 |
|
 |
audiodef Advocate


Joined: 06 Jul 2005 Posts: 4983
|
|
| Back to top |
|
 |
VinzC Advocate


Joined: 17 Apr 2004 Posts: 4557 Location: Spa (Belgium)
|
Posted: Mon Apr 23, 2012 9:58 pm Post subject: |
|
|
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 |
|
 |
|