Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

log session duration

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Dave18



Joined: 26 Jan 2010
Posts: 20

PostPosted: Sun Jun 06, 2010 10:06 pm    Post subject: log session duration Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Jun 07, 2010 12:29 am    Post subject: Reply with quote

The last field in the access log is the number of seconds connected (to within a second).

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dave18



Joined: 26 Jan 2010
Posts: 20

PostPosted: Mon Jun 07, 2010 10:13 am    Post subject: Reply with quote

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 Smile
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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Jun 07, 2010 11:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Dave18



Joined: 26 Jan 2010
Posts: 20

PostPosted: Mon Jun 07, 2010 12:03 pm    Post subject: Reply with quote

Thanks Karl!

Dave
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber