[Freeswitch-users] Launch a script on errors in freeswitch log file
steveayre at gmail.com
Fri Jan 9 22:17:46 MSK 2015
For what purpose?
Monitoring can be done with a number of tools such as logwatch.
If you're wanting to remove the lines to save space look at using logrotate
to archive/remove old logs.
On 9 January 2015 at 14:55, Aqs Younas <aqsyounas at gmail.com> wrote:
> How can i launch a script when there are error logs in freeswitch log
> file. Actually i am using mod_shout as MOH with mod_local_stream, when
> someone enters a url of stream that is not responding i see logs all these.
> 2015-01-09 19:38:39.338003 [ERR] mod_local_stream.c:214 Can't open shout://
> 2015-01-09 19:38:41.337988 [ERR] switch_core_file.c:149 Invalid file
> format [shout] for [22.214.171.124:8316]!
> 2015-01-09 19:38:42.337988 [ERR] mod_local_stream.c:214 Can't open shout://
> 2015-01-09 19:38:42.337988 [ERR] switch_core_file.c:149 Invalid file
> format [shout] for [s9.voscast.com:7584]!
> I want to run an external script to remove that file or urls when there
> are errors logs in freeswitch.
> But i don't know how to trigger that script on errors in freeswitch log.
> Any help would be much appreciated.
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users