Old 6th March 2008, 17:00   #1
eger
Junior Member
 
Join Date: Apr 2003
Posts: 7
Send a message via AIM to eger
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

Last edited by eger; 6th March 2008 at 17:45.
eger is offline   Reply With Quote
Old 6th March 2008, 17:48   #2
eger
Junior Member
 
Join Date: Apr 2003
Posts: 7
Send a message via AIM to eger
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!
eger is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump