[Privoxy-commits] [privoxy] 03/04: privoxy-log-parser: Highlight: "filtering request body from client 127.0.0.1 (size 958) with 'null-filter' produced 0 hits (new size 958)."
    User Git 
    git at git.privoxy.org
       
    Sat Jan 23 15:38:49 UTC 2021
    
    
  
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 31265b1b2d8f5b81cbde0fcada6271d800430c59
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Jan 23 14:08:12 2021 +0100
    privoxy-log-parser: Highlight: "filtering request body from client 127.0.0.1 (size 958) with 'null-filter' produced 0 hits (new size 958)."
---
 tools/privoxy-log-parser.pl | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index 58d7a556..c0f8b219 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -1078,6 +1078,17 @@ sub handle_loglevel_re_filter($) {
         $c .= $req{$t}{'content_size_change'} . $h{'Standard'} . ")";
         $content = $c;
 
+    } elsif ($c =~ m/^filtering request body from client /) {
+
+        # filtering request body from client 127.0.0.1 (size 958) with 'null-filter' produced 0 hits (new size 958).
+
+        $c =~ s@(?<=from client )([^\s]+)@$h{'ip-address'}$1$h{'Standard'}@;
+        $c =~ s@(?<=\(size )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+        $c =~ s@([^\s]+?)(\'? produced)@$h{'filter'}$1$h{'Standard'}$2@;
+        $c =~ s@(?<=\(new size )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+        $c =~ s@(?<=produced )(\d+)(?= hits)@$h{'Number'}$1$h{'Standard'}@;
+        $content = $c;
+
   } elsif ($c =~ /\.{3}$/
         and $c =~ m/^(?:re_)?filtering \'?(.*?)\'? \(size (\d*)\) with (?:filter )?\'?([^\s]*?)\'? ?\.{3}$/) {
 
-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
    
    
More information about the Privoxy-commits
mailing list