[syslog-ng] apache logs over syslog-ng sychronized

Eli Shemer elish at consist.co.il
Wed Sep 3 17:02:45 CEST 2008


source s_apachelogs { file("/etc/apache2/logs/test/2008-09-03-test.log" follow-freq(1) log_prefix("test") ); };

is it possible to somehow get the log_prefix string from the string in the file() ?
otherwise I will have to write down close to 200 source definitions.

-----הודעה מקורית-----
מאת: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] בשם Patrice Levesque
נשלח: ד 03 ספטמבר 2008 03:41
אל: Syslog-ng users' and developers' mailing list
נושא: Re: [syslog-ng] apache logs over syslog-ng sychronized


> IMHO it is better to let Apache log via Syslog in the first place.
> Try a httpd.conf line like:
> CustomLog "|/usr/bin/logger -p local1.info -t apache" complete

If you choose that direct-to-syslog path, maybe named pipes create less overhead and give you the flexibility you need to deal with multiple virtual hosts.



--
 --====|====--
    --------================|================--------
        Patrice Levesque
         http://ptaff.ca/
        syslog-ng.wayne at ptaff.ca
    --------================|================--------
 --====|====--
--


More information about the syslog-ng mailing list