Hi,

> 
> could you please try attached patch?
> 
> thanks
> WM

sorry for the second mail in this short amount of time but just had some time 
to do more test.

I'm not really familiar with regex but using the attached patch works here now 
with the different logfile syntax:

> [07-May-2013 08:03:24] PHP Warning: foo.bar
> [07-May-2013 08:03:24 Europe/Berlin] PHP Warning: foo.bar
> [07-May-2013 08:03:24 UTC] PHP Warning: foo.bar
diff --git a/scripts/services/php b/scripts/services/php
index adc0147..f8a5fe9 100644
--- a/scripts/services/php
+++ b/scripts/services/php
@@ -62,7 +62,7 @@ pop(@message_categories) if $detail < 5;
 while(<>) {
     my $line = $_;
     # skipping messages that are not within the requested range
-    next unless $line =~ /^\[($filter)\]/o;
+    next unless $line =~ /^\[($filter)(?: \w+\/\w+|)(?: \w+|)\]/o;
     $1 =~ /(\d+)-(\w+)-(\d+) (\d+):(\d+):(\d+)/;
     my $time;
 

Reply via email to