Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Discussions (http://forums.winamp.com/forumdisplay.php?f=9)
-   -   Scipt for adding 'GET' method to w3c logs for AWStats? (http://forums.winamp.com/showthread.php?t=288075)

eger 6th March 2008 17:00

Script for adding 'GET' method to w3c logs for AWStats?
 
I understand that AWStats cannot use shoutcast w3c logs because it doesn't include the method in front of the URL (later confirmed in my searched). Has anyone found a way around this either by AWStats modification or script to convert the shoutcast log to add a 'GET' in front of the URL?

If nothing like this is available I will attempt to try and write a conversion script myself. But I am not sure where to begin :)

eger 6th March 2008 17:48

Looks like I answered my own question. So here is how I got AWStats processing to work with the shoutcast w3c log:

- Get a shoutcast w3c log file
- Used the following sed command on the file to create a new one:
sed 's/\/stream/GET\ \/stream/' shout.log > shout2.log

This replaces '/stream' with 'GET /stream'. Now GET is a new space delimited field.

- Use the following LogFormat in awstats config file:
LogFormat = "%host %other %time2 %method %url %code %ua %bytesd %other %other"

- Look at your beautiful shoutcast listener stats!

I also set LogType=S for streaming. But I am not sure what this affects yet.

Hope this might be of help to someone!


All times are GMT. The time now is 14:31.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.