| View previous topic :: View next topic |
| Author |
Message |
Dave18
Joined: 26 Jan 2010 Posts: 20
|
Posted: Sun Jun 06, 2010 10:06 pm Post subject: log session duration |
|
|
Hi,
I'd like to know if it possible to log the duration of a listener session.
For legal reason we need to record the duration of every single listener session.
Is there a way that icecast writes the duration of a session when the listener disconnect?
thanks a lot for your help and sorry for my english.
Dave |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Jun 07, 2010 12:29 am Post subject: |
|
|
The last field in the access log is the number of seconds connected (to within a second).
karl. |
|
| Back to top |
|
 |
Dave18
Joined: 26 Jan 2010 Posts: 20
|
Posted: Mon Jun 07, 2010 10:13 am Post subject: |
|
|
Karl,
let me do an example:
62.94.148.68 - - [30/Apr/2010:11:19:16 +0200] "GET /Radio48 HTTP/1.1" 200 23086403 "http://www.radio.com/webradio/player.swf" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 3.0.30729)" 3834
This line means that ip address 62.94.148.68 have listen the stream /Radio48 for 3834 seconds and it ended at 30/Apr/2010:11:19:16 +0200 ?
Please, be patience with me
Could you tell me the meaning of two fileds? In the example are the number 200 and the number 23086403.
Probably 200 is the http response code, but the other big number what is it?
Is it the icecast session number?
Thanks Karl, I really appreciate your job.
Dave |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Jun 07, 2010 11:29 am Post subject: |
|
|
you are correct on all those, the number you didn't know is the bytes sent. It is very similar to common log format
karl. |
|
| Back to top |
|
 |
Dave18
Joined: 26 Jan 2010 Posts: 20
|
Posted: Mon Jun 07, 2010 12:03 pm Post subject: |
|
|
Thanks Karl!
Dave |
|
| Back to top |
|
 |
|