Hi,
I wrote a simple parser for sc_serv.log to get a report of the connections for the current day and for the last 5 days (sc_serv_1.log ... sc_serv_5.log). The output looks like this:
PHP Code:
0 active connection(s).
3 connection(s) from 192.168.178.21 (desktop.fritz.box):
1.) 2012-09-24 20:55:29 ... 2012-09-24 20:56:55 (1m 26s) - Stream 1 - Screamer Radio v0.4.4
2.) 2012-09-24 22:02:53 ... 2012-09-24 22:32:54 (30m 1s) - Stream 1 - Screamer Radio v0.4.4
3.) 2012-09-24 22:33:21 ... 2012-09-24 22:54:06 (20m 45s) - Stream 1 - Screamer Radio v0.4.4
3 connection(s) from 80.145.167.102 (p5091A766.dip.t-dialin.net):
1.) 2012-09-24 18:33:21 ... 2012-09-24 18:37:08 (3m 47s) - Stream 2 - VLC/2.0.1 LibVLC/2.0.1
2.) 2012-09-24 18:38:22 ... 2012-09-24 18:40:10 (1m 48s) - Stream 2 - VLC/2.0.1 LibVLC/2.0.1
3.) 2012-09-24 18:51:21 ... 2012-09-24 19:06:07 (14m 46s) - Stream 2 - VLC/2.0.1 LibVLC/2.0.1
6 connection(s) from 80.187.106.2 (tmo-106-2.customers.d1-online.com):
1.) 2012-09-24 10:40:05 ... 2012-09-24 10:48:22 (8m 17s) - Stream 1 - Dalvik/1.2.0 (Linux; U; Android 2.2.2; LG-P970 Build/FRG83G)
2.) 2012-09-24 12:57:54 ... 2012-09-24 13:00:35 (2m 41s) - Stream 1 - Dalvik/1.2.0 (Linux; U; Android 2.2.2; LG-P970 Build/FRG83G)
3.) 2012-09-24 12:59:48 ... 2012-09-24 13:01:08 (1m 20s) - Stream 1 - Dalvik/1.2.0 (Linux; U; Android 2.2.2; LG-P970 Build/FRG83G)
4.) 2012-09-24 13:01:08 ... 2012-09-24 13:04:22 (3m 14s) - Stream 1 - Dalvik/1.2.0 (Linux; U; Android 2.2.2; LG-P970 Build/FRG83G)
5.) 2012-09-24 13:03:42 ... 2012-09-24 13:15:55 (12m 13s) - Stream 1 - Dalvik/1.2.0 (Linux; U; Android 2.2.2; LG-P970 Build/FRG83G)
6.) 2012-09-24 18:50:29 ... 2012-09-24 19:02:24 (11m 55s) - Stream 1 - Dalvik/1.2.0 (Linux; U; Android 2.2.2; LG-P970 Build/FRG83G)
The script is written in Perl and can be installed as a CGI script. It's tested on Apache under Windows XP but it should run under Linux as well (provided that the `nslookup` output format is identical). The script isn't optimized for maximum performance, since I don't have many listeners.
Greetings,
Stefan