Streaming statistics dashboard for Icecast
  • Vote Up1Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi all,
     
    We get a lot of requests for a modern stats dashboard for use with Airtime streaming. A recent update to Piwik with support for Icecast logs means we now have exactly that, including audience geolocation maps.

    This feature was previously undocumented, so we have a new manual chapter here:

    http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/icecast-statistics-with-piwik/

    Cheers!

    Daniel
    Post edited by Daniel James at 2014-01-22 10:11:39
  • 15 Comments sorted by
  • Nice on my weekend to do list.
    L-)
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • Hi,

    http://awstats.sourceforge.net/ is also able to read Icecast log files. It is quite more crude in its output, but also much more lightweight on server side!

    aggiuntamente,
    Francesco P.
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    kewl
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • Great stuff!

    Just had a look at the documentation, but it seems it's only for self-hosted installations. Is there a way to use Piwik for "Airtime Packages", too?
    24 Hour Kirtan Mandali Radio is an Internet radio station inspired by and dedicated to the King of Kirtan – Aindra Prabhu http://24hourkirtan.fm/
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Nanda, do you mean you would like to have Piwik for Airtime Pro? Cheers! Daniel
  • Yes, exactly.
    24 Hour Kirtan Mandali Radio is an Internet radio station inspired by and dedicated to the King of Kirtan – Aindra Prabhu http://24hourkirtan.fm/
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    OK, I will talk to the support team to see what we can do. Cheers! Daniel
  • I followed the steps to configure Piwik and it works like a charm, BUT, should i create a cron to import the iceccast log or is it automatically imported daily after running the import command?
  • You have to set a cron job for it to download the stats,also its preferable,if you also set up logrotate so that as the logs get bigger they have just say one or two days logs or of a certain size.

    I install mine with nginx instead,the possibility of
    • load balance
    • proxying
    • and my favourite is to have the user login over https was great advantage

    Remember there is also an app for it to monitor via mobile phone


    VOISSES

    5 to go

    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • I have been playing around with Piwik recently, but can't see how to get it to display countries and duration stats for listeners.

    For example, when a listener connects to http://myicecastserver:8000/stream, they do not access a webpage, just the stream (which may be embedded in Tune In or the Radio Player app) and therefore the Real Time Map, etc does not show any hits. The map works if I track visits to, for example: http://myicecastserver:8000/status.xsl or http://myicecastserver:8000/server_version.xsl or but I am not interested in these pages, only the number of people listening, where they are from and how long they listen for.

    See attached screenshot which shows a recent visit, yet there is no information in Visitor Map or Length of Visit.

    Has anyone got Piwik to successfully display this information?
    Post edited by James Dunn at 2015-06-15 07:56:55
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi James, for this to work, you need to import the raw Icecast log into Piwik. This is not connected to any web page logging. See 'Importing an Icecast log file' on http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/icecast-statistics-with-piwik/

    If after importing this file you have listener durations but not geolocation, see 'Configure Piwik for geolocation' at the link above.

    Cheers!

    Daniel
  • Thanks Daniel, I've got that working now.

    Do you know if it's possible to get the total duration of all listeners? The Dashboard just shows the most common listener duration, but ultimately I want to collect the total duration of all listeners and filter this by country.

    James
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi James, once you have the raw log imported into Piwik it should be possible to display that data any way you want, with a little programming. See http://piwik.org/blog/2014/09/create-widget-introducing-piwik-platform/ for the basics of dashboard widget creation.

    If you do create a new widget that would be useful for other Airtime users, please let us know.

    Cheers!

    Daniel
  • Voisses Tech
    I'm having a lot of trouble setting up Piwik on my LEMP server. I found a guide through Piwik's page, but it wasn't really oriented for use with Icecast2. Do you know of any resources for anyone who is completely new to nginx that might be useful? I generally use apache, but for the reasons you listed above, I decided to give nginx a shot. 

    Thanks, 
    -Chris

  • Where?
    You had the trouble.

    I think my problem was how the php directives ,most tutorial stated because they assume that you were using fastcgi

    so give me a synopsis of your error log.thats where to start.

    and I would suggest compiling nginx for yourself will give you a more uptodate branch,then you can use the many directives here,else search for an old directive if you use the repository version.

    After all compiling nginx is like 3-5 minutes
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.