Skip to content
laurb9 edited this page Oct 4, 2014 · 2 revisions

Installation

Precompiled RPM packages for CentOS 5, 6 and 7 are available here: https://sourceforge.net/projects/httpd-log/files/

Install httpd-log-client on each httpd machine and httpd-log-server on the log machine (they can be the same).

Configuration

Note: you don't need to configure anything if both packages live on the same machine.

log server

Install the httpd-log-server package.

  1. If accepting logs from other machines, edit /etc/sysconfig/httpd-log to have --listen 0.0.0.0 or the machine's IP address.

  2. chkconfig httpd-log-server on service httpd-log-server start

  3. Make sure your firewall allows incoming UDP traffic on port 8181. The port can be changed in /etc/sysconfig/httpd-log but make sure to change it on the clients as well.

log clients

Install the httpd-log-client package.

  1. If you don't want Apache to write its standard access_logs in addition to sending them to httpd-log-server then comment out the CustomLog line in /etc/httpd/conf/httpd.conf

  2. If sending to another log server, edit /etc/httpd/conf.d/httpd-log.conf: Add "--to x.x.x.x" parameter where x.x.x.x is the log server IP.

  3. service httpd restart

Make some http requests and check the /var/log/httpd-log directory for the automatically created log file hierarchy.

Clone this wiki locally