[Icecast] Listener Stats

Thomas B. Rücker thomas at ruecker.fi
Tue Mar 12 14:59:38 UTC 2019


Hi,

On 3/11/19 8:00 PM, Adam Taufmann wrote:
> Hi,
> I really need to find out how to track how many listeners I have to my
> stream. "Listener_connections" doesn't seem to be the right one,
> because the number continues to increment even when the stream is down.


Yes, this is probably not that useful for you, as it will count many
other things like failed connections, probing web-browsers, etc.


> I've looked into the rest of my available stats, and nothing seems to
> be quite right. I'm not extremely familiar with IceCast, so I'm hoping
> there is another place that I can access this information that I just
> don't know about.
> I'd really like to be able to know how many listeners I've had for
> each stream/mount point that I have.


There are several approaches:

playlist.log – on each metadata update it will log the currently
connected number of clients along with basic metadata.

Log analysis – webalizer and such. Also Matomo (formerly Piwik) can
ingest Icecast logfiles for analysis.

Graphing solutions – Munin, etc., there are multiple plugins

url-authentication hooks – you get hook request on every
connect/disconnect and such


You didn't specify what sort of numbers you need, so I'm keeping this
high level at this point.


Cheers,

TBR





More information about the Icecast mailing list