[syslog-ng] apache : logs, named pipes

Patrice Levesque syslog-ng.wayne at ptaff.ca
Tue Jun 23 16:57:12 CEST 2009



> The ErrorLog directory can direct entries to syslog, but the others
> (access log, rewrite log etc) cannot.  You would need some custom
> scripting.

You can invoke trickery-pokery; pipe directly to `logger` or whatever
script you prefer:
http://httpd.apache.org/docs/2.2/logs.html#piped

Or else, create a named pipe, write your logs to it (configure AccessLog
as if it were a real file), and write a Syslog-NG source blurb to pull
logs from it using pipe().  Should you want to try this, make sure
Syslog-NG is restarted _before_ apache so that the named pipe has a
reader (if not, apache will hang at start).



-- 
 --====|====--
    --------================|================--------
        Patrice Levesque
         http://ptaff.ca/
        syslog-ng.wayne at ptaff.ca
    --------================|================--------
 --====|====--
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20090623/cc01a405/attachment.pgp 


More information about the syslog-ng mailing list