Hi I want to log access log of apache with the help of syslog-ng.But it is not working.I have added the code below. TIA Niraj source apachesrc{ file("/var/log/httpd/access_log"); }; destination destfile{ file("apache-ng.log"); }; log { source(apachesrc); destination(destfile); };
HI you could put on your httpd.conf log line CustomLog syslog and set syslog-ng.conf to log local4 (default local to httpd) to send to logserver. Related link: http://httpd.apache.org/docs/logs.html On 18 Mar 2005 12:16:35 +0530, niraj <niraj@cins.unipune.ernet.in> wrote:
Hi
I want to log access log of apache with the help of syslog-ng.But it is not working.I have added the code below.
TIA Niraj
source apachesrc{ file("/var/log/httpd/access_log"); };
This isn't a valid option. You have configure to log from (source) local. Like: source s_sys { unix-stream ("/dev/log"); internal() }
destination destfile{
file("apache-ng.log"); };
log {
source(apachesrc); destination(destfile); };
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
participants (2)
-
niraj
-
Viper sec