Raymii.org
אֶשָּׂא עֵינַי אֶל־הֶהָרִים מֵאַיִן יָבֹא עֶזְרִֽי׃Home | About | All pages | Cluster Status | RSS Feed
Apache access/error log to syslog
Published: 15-12-2013 | Author: Remy van Elst | Text only version of this article
❗ This post is over twelve years old. It may no longer be up to date. Opinions may have changed.
This snippet shows you how to redirect the Apache access log to syslog using the Customlog statement, and the Error log to syslog via the ErrorLog statement.
Using the double pipe prevents spawning a shell for every hit. Append the below line to a vhost to have everything logged to syslog.
CustomLog "||/usr/bin/logger -t apache -i -p local5.notice" combine
The error log can be appended to syslog using the following statement:
ErrorLog syslog:local6
- More info on the Errorlog: http://httpd.apache.org/docs/2.2/mod/core.html#errorlog
- More info on the Customlog module: http://httpd.apache.org/docs/2.2/mod/mod log config.html#customlog