hi all,
I am running a syslogd on my ubuntu 10.10 system.
I have a apache2 server on the same machine.
I have configured my apache2.conf file to send the error logs to the local syslog server. The config is as under :-
Quote:
LogLevel notice
ErrorLog syslog:local1
|
I have also configured the /etc/syslog.conf as under :-
Quote:
local1.info /var/log/apache2/error_logs
|
I have created a file in the /var/log/apache2 dir with the ownerships and permissions as under :-
Quote:
-rwxrwxrwx 1 syslog adm 77 2011-08-11 18:14 /var/log/apache2/error_logs
|
Next I restarted the sysklogd and apache2 servers with a service command as under :-
Quote:
sudo service sysklogd restart
sudo service apache2 restart
|
I thereafter observed the /var/log/apache2/error_logs file and found the entries for apache2 closing down and coming up as under :-
Quote:
Aug 11 18:14:14 cc apache2[4940]: [notice] caught SIGTERM, shutting down
Aug 11 18:14:19 cc apache2[5282]: [notice] ModSecurity for Apache/2.5.12 (http://www.modsecurity.org/) configured.
Aug 11 18:14:19 cc apache2[5282]: [notice] Original server signature: Apache/2.2.16 (Ubuntu) mod_ssl/2.2.16 OpenSSL/0.9.8o
Aug 11 18:14:20 cc apache2[5285]: [notice] Apache/2.2.16 (Ubuntu) mod_ssl/2.2.16 OpenSSL/0.9.8o Microsoft-IIS/5.0 configured -- resuming normal operations
|
Now the problem is I donot get any other messages thereafter. so it is hardly useful. How can I increase the logged messages from apache. I tried the facility
Then restarted the sysklogd and apache2 , but the contents of the /var/log/error_logs file remained similar.
Next , I followed the
link.
I created the perl script for recording access logs of apache2. I then restarted the apache2 and sysklogd. when I opened my website from a browser, the access log did not work. Question is why ?
I think I am getting something wrong with the facility value , in apache2.conf it is ErrorLog syslog:local1 ! but the script is suggesting that it should be local2 in the line 4
Quote:
openlog('apache','cons','pid','local2');
|
I therefore changed the script to local1 in above line. But still no access log !?!?
Can someone help me out.
thanks in advance
bye
nishith