| View previous topic :: View next topic |
| Author |
Message |
luca066
Joined: 01 Dec 2011 Posts: 42
|
Posted: Thu Jan 19, 2012 5:14 pm Post subject: daily basis archive log |
|
|
Hi,
I'd like to know if it is possible to archive the access.log file daily.
It could be a great function to make daily load listeners statistics into a database with a batch file.
Or somebody knows how to load the listeners statistics into a mysql db?
I'm using icecast on a windows 2008 server.
Thanks a lot for your answers.
Luca |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Jan 19, 2012 10:22 pm Post subject: |
|
|
not in 2.3.2. It's mainly geared up for a cycle on a size trigger. You can on the KH build if you use the admin interface. The normal trick is to use a HUP signal but that is not an option on win32. I did look at doing some time based re-opening and have added a <duration> parameter into the various log blocks which should help. That will be in kh32.
karl. |
|
| Back to top |
|
 |
luca066
Joined: 01 Dec 2011 Posts: 42
|
Posted: Fri Jan 20, 2012 12:03 am Post subject: |
|
|
Thank you Karl,
you're doing a great job.
Have you got a planned date for the kh32?
Luca
Last edited by luca066 on Fri Jan 20, 2012 12:45 am; edited 1 time in total |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
|
| Back to top |
|
 |
luca066
Joined: 01 Dec 2011 Posts: 42
|
Posted: Fri Jan 20, 2012 12:51 am Post subject: |
|
|
Sorry, probably I've problems with my poor English.
Did you mean that in kh31.4 build I can use the duration parameter on the log files?
If yes, how?
Could you gimme an example of how to configure the duration parameter on the xml file?
thanks a lot |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Jan 20, 2012 1:55 am Post subject: |
|
|
yes just use something like
<errorlog>
<name>error.log</name>
<duration>7200</duration>
<errorlog>
you probably want longer than 2 hours but it's just an example, accesslog and playlistlog can be defined in a similar way. The 2.3.2 style of tags were a bit messy for adding that option. As I say, it's just added in 31.4 so let me know how well it works. I suppose a more absolute time could be done but I haven't really given that much thought.
karl. |
|
| Back to top |
|
 |
luca066
Joined: 01 Dec 2011 Posts: 42
|
Posted: Fri Jan 20, 2012 8:25 am Post subject: |
|
|
Ok Karl,
thanks. I'll test it during the weekend.
I'll let you know.
Luca |
|
| Back to top |
|
 |
luca066
Joined: 01 Dec 2011 Posts: 42
|
Posted: Fri Jan 20, 2012 11:57 pm Post subject: |
|
|
Hi Karl,
I'm trying to setup KH31.4, it starts but I'm able to see the server only from the localhost.
From a remote client icecast doesn't answer : I'm able to see the web interface only from the browser on the same server (windows 2008).
If I write http://localhost:8000 I see the server, if I use http://test.name.com:8000 it doesn't answer.
I've the 8000 port open on the firewall, but I even tried to switch off the firewall: no way, it answer only with "localhost" url.
I'm using your xml file (I've only changed the path for the log files).
Have you got any idea?
Thanks
Luca |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Jan 21, 2012 1:25 am Post subject: |
|
|
I would check what address your test.name.com maps to. If that is an external address and your icecast is in a NAT zone (ie 192.168.x.x) then you may find that the request is going out to the router and not getting bounced back in. Try with the actual IPs first.
karl. |
|
| Back to top |
|
 |
luca066
Joined: 01 Dec 2011 Posts: 42
|
Posted: Tue Jan 24, 2012 11:30 pm Post subject: |
|
|
Hi Karl,
I've found how to fix my problem with the server visibility only using localhost address.
I've set the bind address in the config file using the ip address of the server (it has a public ip).
In this way it answers if I call it using the fully qualified name and it doesn't answer anymore using localhost.
It seems that if I don't set any bind address in the xml file, icecast bind only the localhost and not all the server ip addresses.
Now I'll test the log duration parameter.
thanks
Luca |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Jan 25, 2012 1:25 am Post subject: |
|
|
One thing I did when trying out the new build setup is enabling the IPv6 routines which have been working well under the unix code and it did answer on my XP test.
The bind address is not a solution to your description of the problem, but when you get chance to try without bind address then let me know what the netstat output is for listening sockets (you'll have to check for the exact args).
karl. |
|
| Back to top |
|
 |
luca066
Joined: 01 Dec 2011 Posts: 42
|
Posted: Wed Jan 25, 2012 8:47 am Post subject: |
|
|
Karl,
which windows command do I have to launch for the netstat output?
Another question: is there a way for shutdown the icecast server gracefully or do I have to send always ctrl-c ?
If I close with ctrl-c the icecast.pid is not deleted by the server.
Luca |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Jan 25, 2012 1:17 pm Post subject: |
|
|
netstat is the windows command to run on a command window, I'm just not entirely sure of the args used.
Usually on windows, people run icecast as a service, so use the service manager to stop the server. Ctrl-C is caught but I wasn't aware of any issue dropping the pid for that.
karl. |
|
| Back to top |
|
 |
luca066
Joined: 01 Dec 2011 Posts: 42
|
Posted: Mon Feb 13, 2012 2:48 pm Post subject: |
|
|
Hi Karl,
sorry if I answer only now.
I can confirm that log duration parameters works great.
About the problem with the IPv6, I've tried to run the server without any bind address on a specified test port (8888).
Netstat command reports some lines like this one:
local address foreign address state
[::1]:8888 host:49269 time wait
Where host is the machine name without the domain.com sufix.
Let me know if I can do some other tests for you.
thanks
Luca |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Feb 13, 2012 3:24 pm Post subject: |
|
|
time wait is a closing socket not listen. The ::1 is an ipv6 notation. Make sure IP addresses work first then focus on the name translation.
karl. |
|
| Back to top |
|
 |
|