PHP Logwatch Script
Michael Ainsworth <[email protected]> Tue, 28 Apr 2015 22:38:43 +0000
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On my system, PHP errors are not being picked up, simply because the regular expression misses the timezone. This is the file I've modified. Operating system: CentOS 7 Filename: /usr/share/logwatch/scripts/services/php Version information: 1.2 2008/03/24 I've made a modification on line 65: Old: next unless $line =~ /^\[($filter)\]/o; New: next unless $line =~ /^\[($filter) [a-zA-Z\/]+\]/o; Here is an example log file: [28-Apr-2015 15:40:44 Australia/Sydney] PHP Fatal error: Call to a member function somethin() on a non-object in /var/www/html/whatever.php on line 308 Warm regards, -- Michael Ainsworth Computer Programmer Angus Australia Locked Bag 11 ARMIDALE NSW 2350 Ph: 02 6773 4619<tel:+61267734619> [email protected]<mailto:[email protected]> www.angusaustralia.com.au<http://www.angusaustralia.com.au> ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Logwatch-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/logwatch-devel