Apache 2.4 and CustomLog with pipe returns "error writing"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/apache_vhosts/apache_pipelogger

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?
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux