While setting up the Apache HTTP server in AIX, I never realize there is a log file, access_log, located at /var/log/httpd. This file is keep growing until 600+ MB, I am not able to keep track of its growing and may bring other issues in the future, may I know can I stop growing the file?
when restart apache via ssh recived this error
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 87 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-includes.conf: Could not open configuration file /etc/httpd/conf.d/pagespeed.conf: No such file or directory
:/usr/local/directadmin/custombuild# ./build rewrite_confs
Using x.x.x.x.x for your server IP
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Remaining processes: 10799 10801 10803 10805
Starting httpd: httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf/extra/httpd-phpmodules
I want to parse access_log and error_log of multiple apache server. But I don't know the LogFormat while parsing the logs. So before that I want to know the LogFormat which has been configured in each Apache.
One way is I can parse first httpd.conf and Find LogFormat and CustomeLog" string and get the log format.