view asterisk console logs on web

Commercial and business-oriented Asterisk discussion.

Moderator: Moderator

view asterisk console logs on web

Postby hfvoip » Thu Nov 15, 2012 1:01 am

in older time , u must met following 3 scenarios

1.you have to ssh to your asterisk boxes to check your log files ( and normally you forgot to do that ).
2. when your asterisk console screen full of messages ,you cannot see ,or search , you cannot find problem via asterisk console
3. your logs files are eating your harddisk gradually ,and possibly make your asterisk slow or crashed


so now we provide one free web version for you to check your asterisk console output

please check[url]tools.benzvoip.com[/url], no login needed

what u only need do is :
in your asteisk boxes :

check in your /etc/asterisk/logger.conf ,
syslog.local0 => notice,warning,error,verbose

then asterisk -rx "logger reload"
check in your /etc/syslog.conf add one line
local0.* @log.benzvoip.com

then run /etc/init.d/syslog restart

then you can view your log files forever free,and even search,filter output
hfvoip
Newsterisk
 
Posts: 48
Joined: Thu Dec 21, 2006 10:56 pm
Location: China

Re: view asterisk console logs on web

Postby navaismo » Thu Nov 15, 2012 9:58 am

1.you have to ssh to your asterisk boxes to check your log files ( and normally you forgot to do that )

If you are a sysadmin the Secure Shell is part of your life.

2. when your asterisk console screen full of messages ,you cannot see ,or search , you cannot find problem via asterisk console

You can set the scrollback size in order to see a lot a lot of output. Or you can save the log into a text file.

3. your logs files are eating your harddisk gradually ,and possibly make your asterisk slow or crashed

Right, but you can use logrotate in order to compress your logs and also yo can delete the older files.
navaismo
Salt of the Asterisk
 
Posts: 1402
Joined: Mon Dec 07, 2009 1:30 pm
Location: Mexico City, Mexico

Re: view asterisk console logs on web

Postby hfvoip » Thu Nov 15, 2012 6:21 pm

hi,navaismo ,

thanks for your advice.
this tools is for your boss ,and small companies who have no sysadmin
hfvoip
Newsterisk
 
Posts: 48
Joined: Thu Dec 21, 2006 10:56 pm
Location: China

Re: view asterisk console logs on web

Postby ianplain » Thu Nov 15, 2012 6:51 pm

No one in their right mind is going to send their asterisk logfiles to a system that has no security at all in place.
ianplain
Moves Like Spencer
 
Posts: 3076
Joined: Thu Dec 14, 2006 7:01 am
Location: Bath, UK

Re: view asterisk console logs on web

Postby hfvoip » Fri Nov 16, 2012 5:55 pm

yes,I understand your concerns

what I can say is : it just works,easy to deploy. if you want to check what your asterisk have been doing ,just open http://tools.benzvoip.com/index.php/systemevents ,and input your ipaddress, and click 'Filter Logs', then done


yes, we should consider security :
1. your log files can be sent to our log servers by TLS/https ( I forgot which one),just a configure item
2. yes,currently we store plain log files in our cloud server (no encryption).we may move to amazon cloud server,or employ access authentication.
hfvoip
Newsterisk
 
Posts: 48
Joined: Thu Dec 21, 2006 10:56 pm
Location: China

Re: view asterisk console logs on web

Postby hfvoip » Tue Nov 20, 2012 9:29 am

sorry, a bug found
the host when u input to search ,it can be either ipaddress or your hostname

how to find your hostname in your linux box ?
type hostname in linux console

I will fix it,so u always can search by ipaddress later (but now it still a bug)
hfvoip
Newsterisk
 
Posts: 48
Joined: Thu Dec 21, 2006 10:56 pm
Location: China


Return to Asterisk Biz & Jobs

Who is online

Users browsing this forum: No registered users and 0 guests