Hi, Is there a way, please, of being able to see historical connection details in V2.4.4? For example, I wish to be able to see when a presenter disconnected from the server and the following one connected in order to be able to troubleshoot a problem. Since the incident, there have been subsequent connections and, so, the admin page doesn't show the info I'm after as it shows the current status. I've had a look through the access.log file but this doesn't seem to detail when a streaming connection is made or dropped. The software being used for streaming is Station Playlist and I can see lots of entries for this but it all seems to be related to getting listener stats! Maybe I'm not interpreting the access.log correctly but if anyone can shed any light upon what I'm trying to do, I'd really appreciate it. Thanks for any help. Regards Richard Bartholomew -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20220214/10b67bd1/attachment.htm>
Under your mountpoint settings you can state a program that is run when the source is started/stopped. It is passed a parameter which is the name of the mountpoint that is starting. The processing of the stream does not wait for the script to end. <mount> <mount-name>/example-complex.ogg</mount-name> <username>othersource</username> <password>hackmemore</password> <max-listeners>1000</max-listeners> <fallback-mount>/example2.ogg</fallback-mount> <fallback-override>1</fallback-override> <fallback-when-full>1</fallback-when-full> <public>1</public> <bitrate>64</bitrate> <on-connect>/home/icecast/bin/source-start</on-connect> <on-disconnect>/home/icecast/bin/source-end</on-disconnect> </mount> The /home/icecast/bin/source-start file could be: #!/bin/bash /bin/echo "Stream - Start: " $(date) >> var/log/encoder.log And the /home/icecast/bin/source-stop file could be: #!/bin/bash /bin/echo "Stream - Stop : " $(date) >> var/log/encoder.log Use appropriate pathnames for your set up. And then you might end up with an encoder.log file that looks a little like this: Stream - Stop : Wed Dec 1 10:20:49 GMT 2021 Stream - Start: Wed Dec 1 10:21:43 GMT 2021 Stream - Stop : Thu Dec 23 04:59:13 GMT 2021 Stream - Start: Thu Dec 23 04:59:21 GMT 2021 Stream - Stop : Fri Feb 4 06:28:39 GMT 2022 Stream - Start: Fri Feb 4 06:28:48 GMT 2022 That will show you when an encoder has connected/disconnected. Hope that helps Chip Scooter On Mon, 14 Feb 2022 at 12:29, Richard Bartholomew <rlbart53 at gmail.com> wrote:> Hi, > > > > Is there a way, please, of being able to see historical connection details > in V2.4.4? For example, I wish to be able to see when a presenter > disconnected from the server and the following one connected in order to be > able to troubleshoot a problem. Since the incident, there have been > subsequent connections and, so, the admin page doesn't show the info I'm > after as it shows the current status. > > > > I've had a look through the access.log file but this doesn't seem to > detail when a streaming connection is made or dropped. The software being > used for streaming is Station Playlist and I can see lots of entries for > this but it all seems to be related to getting listener stats! > > > > Maybe I'm not interpreting the access.log correctly but if anyone can shed > any light upon what I'm trying to do, I'd really appreciate it. > > > > Thanks for any help. > > > > Regards > > Richard Bartholomew > > > > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20220214/a5671c68/attachment.htm>
Good afternoon, On Mon, 2022-02-14 at 12:29 +0000, Richard Bartholomew wrote:> Hi, > > Is there a way, please, of being able to see historical connection > details in V2.4.4? For example, I wish to be able to see when a > presenter disconnected from the server and the following one > connected in order to be able to troubleshoot a problem. Since the > incident, there have been subsequent connections and, so, the admin > page doesn't show the info I'm after as it shows the current status. >> I've had a look through the access.log filethat is exactly the place go to for.> but this doesn't seem to detail when a streaming connection is made > or dropped. The software being used for streaming is Station Playlist > and I can see lots of entries for this but it all seems to be related > to getting listener stats! > > Maybe I'm not interpreting the access.log correctly but if anyone can > shed any light upon what I'm trying to do, I'd really appreciate it.I think you might have missed the important lines all the data. Source connections are, generally speaking, using PUT or SOURCE. The status code reflects the status of the mounting, so if a source successfully mounted the status will be a 200. With best regards, -- Philipp Schafft (CEO/Gesch?ftsf?hrer) Telephon: +49.3535 490 17 92 L?wenfelsen UG (haftungsbeschr?nkt) Registration number: Bickinger Stra?e 21 HRB 12308 CB 04916 Herzberg (Elster) VATIN/USt-ID: Germany DE305133015 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 228 bytes Desc: This is a digitally signed message part URL: <http://lists.xiph.org/pipermail/icecast/attachments/20220214/3e25f644/attachment.sig>