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 current listeners

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



Joined: 12 Nov 2010
Posts: 10
Location: Örebro

PostPosted: Mon Dec 19, 2011 3:05 pm    Post subject: Log current listeners Reply with quote

Which is the most convinient way of logging current listeners over time?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Dec 19, 2011 3:43 pm    Post subject: Reply with quote

This depends on the setup you have. Most poll an xsl file at regular intervals to retrieve the count. you could extract the number from the playlist log or leave a client reading on a stats feed to get the count as it changes

curl -X STATS http://admin:pw@..../

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



Joined: 12 Nov 2010
Posts: 10
Location: Örebro

PostPosted: Tue Dec 20, 2011 9:22 am    Post subject: Reply with quote

karlH wrote:
This depends on the setup you have. Most poll an xsl file at regular intervals to retrieve the count. you could extract the number from the playlist log or leave a client reading on a stats feed to get the count as it changes

curl -X STATS http://admin:pw@..../

karl.


Hmm, good advice I guess, but I'm not sure how to implement it.

I haven't used curl before.. the output gave me

...
EVENT global listeners 4
EVENT /radiocampus listeners 3
...

Could I write this to a file with a time stamp through xsl?


Our setup is running Icecast2 on a debian system with two instances of darkice connected.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Dec 20, 2011 1:24 pm    Post subject: Reply with quote

you can use curl to query and xsl page if you wish, the local file will have the timestamp. curl of the stats is not xsl but can be used to filter the messages for the listener_count. As I said it depends on what you exactly want out of it.

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



Joined: 12 Nov 2010
Posts: 10
Location: Örebro

PostPosted: Sat Feb 11, 2012 11:06 am    Post subject: Reply with quote

Is it possible to log .../admin/listclients.xsl?mount=/radiocampus ?

For example
IP - Seconds Connected - User Agent - Time when client connected
in listenersYEARDAYMONTH.log
Back to top
View user's profile Send private message Send e-mail Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Feb 11, 2012 3:46 pm    Post subject: Reply with quote

question is a bit vague, you can certainly get /admin/listclients [.xsl] ... to poll the information. you can even transform the xml that you get into another format, but it is polling, not a log as it happens operation.

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



Joined: 12 Nov 2010
Posts: 10
Location: Örebro

PostPosted: Sun Feb 12, 2012 1:09 am    Post subject: Reply with quote

What think I want to have is a folder with one file for every day, containing a list with listener stats, collected every half hour or so, or when somebody connects or disconnects.
The list should look like
IP connected agent time client connected
1.1.1.127 1 mozilla 00:00

A fellow radioworker wrote a program in C++ collecting current listeners every hour, but I guess there is a better way of doing it
Thanks for your time! It is much help trying to formulate questions for you.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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