I want to pipe apache logs (with my custom format) to my script. I at the same time want to keep loging standard format for every vhost to separate file.
When I put CustomLog "|/path/to/my/script" myformat in httpd.conf it works perfect but only for vhosts that has no CustomLog /path/to/logs/vhostXX-logfile otherformat inside
For vhosts that has already logging in it it does not log anything to |/path/to/my/script
I could put CustomLog "|/path/to/my/script" myformat in every vhost but then script gets spawned in paralel for every single vhost and that is not acceptable.
What can I do?