Martin Zinsser ([EMAIL PROTECTED]):

> I need specific advice. I fear Analog won't work on these logs, as Shoutcast
> logs are kind of unstructured.
> The top 5 lines are not of much help, but anyway, here they are:

> <04/12/01@16:12:02> [SHOUTcast] DNAS/posix v1.7.1 (Aug 29 2000) starting up...
> <04/12/01@16:12:02> [main] pid: 10248
> <04/12/01@16:12:02> [main] loaded config from /etc/sc_serv2.conf
> <04/12/01@16:12:02> [main] initializing (usermax:32 portbase:7000)...
> <04/12/01@16:12:02> [main] No ban file found (sc_serv.ban)

> I've put a complete logfile here: http://141.28.122.100/mz/sc_serv.log (200 KB)
> Thanks a lot for any advice!

Well, the interesting lines are the ones like this:

<04/12/01@16:12:19> [source] connected from 141.28.122.215
<04/12/01@16:12:19> [source] icy-name:Radio GLF ; icy-genre:Studentenradio
<04/12/01@16:12:19> [source] icy-pub:0 ; icy-br:24 ; icy-url:http://www.radio-glf.de
<04/12/01@16:12:19> [source] icy-irc:%23glf ; icy-icq:0 ; icy-aim:N%2FA
<04/12/01@16:24:19> [dest: 217.0.115.61] starting stream (UID: 0)[L: 1]
<04/12/01@16:24:26> [dest: 217.0.115.61] connection closed (7 seconds) (UID: 0)[L: 0]
<04/12/01@16:28:34> [dest: 217.0.115.61] starting stream (UID: 1)[L: 1]
<04/12/01@16:28:46> [dest: 217.0.115.61] connection closed (11 seconds) (UID: 1)[L: 0]

If you just want to monitor requests, then write a log format to read
the 'source' lines. Something like these might do:

LOGFORMAT "<%m/%d/%y@%h:%n:%j> [source] connected from %S
LOGFORMAT "<%m/%d/%y@%h:%n:%j> [source] icy-name:%v; %j
LOGFORMAT "<%m/%d/%y@%h:%n:%j> [source] %j; %j; %j:%r
LOGFORMAT "<%m/%d/%y@%h:%n:%j> [source] connected from %S

This would give you a 'Request Report' of the radio URLs, a Host
Report (and Domain and Organisation) or the client connections, and a
'Virtual Host' report of the Stream Names. I don't know much of what
else is there, but that might be all you need.

If you wanted to monitor bandwidth usage, you would write a log format
to read the 'dest' lines and total those, but these logs don't seem to
include the size of the data transferred, so that's not possible.

-- 

Jeremy Wadsack
Wadsack-Allen Digital Group

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to