View previous topic :: View next topic |
Author |
Message |
radiocampus
Joined: 12 Nov 2010 Posts: 10 Location: Örebro
|
Posted: Mon Dec 19, 2011 3:05 pm Post subject: Log current listeners |
|
|
Which is the most convinient way of logging current listeners over time? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Dec 19, 2011 3:43 pm Post subject: |
|
|
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 |
|
|
radiocampus
Joined: 12 Nov 2010 Posts: 10 Location: Örebro
|
Posted: Tue Dec 20, 2011 9:22 am Post subject: |
|
|
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 |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Dec 20, 2011 1:24 pm Post subject: |
|
|
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 |
|
|
radiocampus
Joined: 12 Nov 2010 Posts: 10 Location: Örebro
|
Posted: Sat Feb 11, 2012 11:06 am Post subject: |
|
|
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 |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Feb 11, 2012 3:46 pm Post subject: |
|
|
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 |
|
|
radiocampus
Joined: 12 Nov 2010 Posts: 10 Location: Örebro
|
Posted: Sun Feb 12, 2012 1:09 am Post subject: |
|
|
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 |
|
|
|