Can we configure Apache to send logs directly to a log analysis system

apache-2.4logging

I want to configure Apache to send access logs to a log analysis system so is it possible to do it by configuring Apache or I have to use a Syslog tool to send logs.

Best Answer

In stead of having syslog handling the Apache logs, Apache can very well send its logging immediately to syslog, as explained eg. Apache config syslog

This is sufficient:

CustomLog "|/usr/bin/logger -t httpd -p <facility>.<priority>" <log format name>

You may need configuring syslog, if the standard treatment of these messages is insufficient.

Related Topic