Hi, I have a fedora28 system with apache-2.4.34 and would like to try to do some more advanced logging to report on bandwidth, users, and other stats.
I've identified this script as part of munin called apache_logger that requires a change to how apache logs by default.
I've added the following to my virtual domain:
<IfModule mod_log_config.c> CustomLog "|/usr/share/munin/apache_pipelogger" "%v %p %m %B %D %s" </IfModule>
When reloading apache, it reports the following in the error_log:
[Wed Apr 03 14:35:50.129503 2019] [log_config:warn] [pid 18084:tid 140401642026752] (32)Broken pipe: [client 66.249.70.4:59383] AH00646: Error writing to |/usr/share/munin/plugins/apache_pipelogger %v %p %m %B %D %s
Is that the correct format? Perhaps this is the format for an apache-2.2 script and the one for apache-2.4 is different?
I've tried several variations of this, including setting the LogFormat and providing a name for it, but it always results in the same "error writing" error.
The script I am using is here: https://github.com/munin-monitoring/contrib/blob/master/plugins/apache/apach...
Would someone take a look for me and see what I'm doing wrong?
Also, does spawning a new shell for every hit cause a significant amount of overhead? Should I consider doing this another way? What's the best way to get stats from apache like bandwidth, users, page views, error codes, etc in the form of a graph similar to what munin produces?
On Wed, 3 Apr 2019 14:41:50 -0400 Alex mysqlstudent@gmail.com wrote:
Hi, I have a fedora28 system with apache-2.4.34 and would like to try to do some more advanced logging to report on bandwidth, users, and other stats.
I've identified this script as part of munin called apache_logger that requires a change to how apache logs by default.
I've added the following to my virtual domain:
<IfModule mod_log_config.c> CustomLog "|/usr/share/munin/apache_pipelogger" "%v %p %m %B %D %s" </IfModule>
When reloading apache, it reports the following in the error_log:
[Wed Apr 03 14:35:50.129503 2019] [log_config:warn] [pid 18084:tid 140401642026752] (32)Broken pipe: [client 66.249.70.4:59383] AH00646: Error writing to |/usr/share/munin/plugins/apache_pipelogger %v %p %m %B %D %s
Is that the correct format? Perhaps this is the format for an apache-2.2 script and the one for apache-2.4 is different?
I've tried several variations of this, including setting the LogFormat and providing a name for it, but it always results in the same "error writing" error.
Look at (version 2.4) http://httpd.apache.org/docs/current/mod/mod_log_config.html and http://httpd.apache.org/docs/current/logs.html#piped