-
Notifications
You must be signed in to change notification settings - Fork 1
Home
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).
Note: you don't need to configure anything if both packages live on the same machine.
Install the httpd-log-server package.
-
If accepting logs from other machines, edit
/etc/sysconfig/httpd-log
to have--listen 0.0.0.0
or the machine's IP address. -
chkconfig httpd-log-server on
service httpd-log-server start
-
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.
Install the httpd-log-client package.
-
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
-
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. -
service httpd restart
Make some http requests and check the /var/log/httpd-log
directory for the automatically created log file hierarchy.