[Icecast-dev] Listener stats
jorr at streamguys.com
jorr at streamguys.com
Tue Sep 22 15:16:44 UTC 2020
What about scrapping the access logs for connections that have completed, or utilizing netstat outputs to get active listeners (minus sources)?
Either of those options would get you remote IP addresses, both a slightly different view in that logs are after a connection closes, while netstat is while the connection is open.
-----Original Message-----
From: Icecast-dev <icecast-dev-bounces at xiph.org> On Behalf Of Reaz Baksh
Sent: Monday, September 21, 2020 3:03 PM
To: icecast-dev at xiph.org
Subject: Re: [Icecast-dev] Listener stats
Hello Jordan
Thanks for the reply. I commented out all the fields in the status-json.xsl but it didn't give me the listener IP. The example below would show me the source IP. I can get the IP from the web interface at this location, http://xxx.xxx.xxx.xxx:8000/admin/listclients.xsl?mount=/dhantal, but that means I would have to scrape the web interface which I don't want to do.
Reaz
On 2020-09-21 5:27 p.m., Jordan Erickson wrote:
> Hi Reaz,
>
> IP Address != Location of user in many cases. Think VPNs for instance.
>
> Of course if you're set on going that route, I'm pretty sure that
> status-json.xsl (in your webroot) has the IP address option simply
> added to a section that does not show it:
>
> <xsl:template match="icestats/source/source_ip"><xsl:if
> test="not(following-sibling::*)">"dummy":null}</xsl:if></xsl:template>
>
> I could be wrong but you may be able to simply remove that line and
> it'll work. I haven't tried that before so do it at your own risk ;) I
> personally don't know how you would do that without modifying the xsl
> file to display it.
>
>
> Cheers,
> Jordan Erickson
>
>
> On 9/21/20 2:10 PM, Reaz Baksh wrote:
>> Hello
>> I’m new to Icecast and I’m using version 2.4.4. How would I be able to get a Jason file that has listener information specifically listener location or at least the IP address. I can get listener count but I’m looking for location through the IP. I need to write a php script to gather this information. I have checked the status-Jason.xsl and the xml2json.xsl but neither gives me that information.
>>
>> What would I have to modify and how, to get this? I would prefer not to modify any xsl file to get this if at all possible.
>>
>> Thanks
>>
>> Reaz
>> _______________________________________________
>> Icecast-dev mailing list
>> Icecast-dev at xiph.org
>> http://lists.xiph.org/mailman/listinfo/icecast-dev
>>
> _______________________________________________
> Icecast-dev mailing list
> Icecast-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast-dev
_______________________________________________
Icecast-dev mailing list
Icecast-dev at xiph.org
http://lists.xiph.org/mailman/listinfo/icecast-dev
More information about the Icecast-dev
mailing list