0

I need help with config Apache 2.4. Centos 7. Before I dont had this problem, but now I can see access log from all doamins write to /var/log/messages - But I dont wont it.

I seen httpd.conf and others, there is no mentions about log to primary syslog file. Can you help?

Thank you

Update 1

As requested:

Example line:

May 17 09:50:06 servername httpd: ..*.23 - - [17/May/2017:09:50:04 +0200] "GET /posting.php?mode=post&f=8 HTTP/1.1" 404 12908 "http://www.****.cz/posting.php?mode=post&f=8" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"

grep -Ri customlog /etc/httpd/

/etc/httpd/conf/httpd.conf:    CustomLog "logs/access_log" combined
/etc/httpd/conf/vhost.conf:     CustomLog /var/log/httpd/BASE-XX-acces_log combined
/etc/httpd/conf/vhost.conf:     CustomLog /var/log/httpd/BASESSL-XX-acces_log combined
/etc/httpd/conf/vhost.conf:     CustomLog "|$tee -a /www/xxxx.net/logs/apache/acces_log" combined
  • Please share some output from /var/log/messages – Alexander Tolkachev May 12 '17 at 21:20
  • Please paste the output of grep -Ri customlog /etc/httpd/ too. – RoseHosting May 15 '17 at 16:19
  • Updated in question – Pavel May 17 '17 at 7:54
  • Try doing a grep -R syslog /etc/httpd/*. If you search Google for "apache syslog" you can see how to configure apache/httpd to send to syslog. Just reverse the process to get it to stop. :) – theglossy1 May 29 '17 at 5:02
  • Ok, with delay. I try it, but nothing about syslog in conf files :( – Pavel Jul 11 '17 at 12:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.