|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Junior Member
|
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. |
|
|
|
|
|
#2 |
|
Junior Member
|
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! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|