1

I have server with RHEL 6 and rsyslog-5.8 and Apache/2.2.23, I sent the access and error logs to syslog server but the syslog adds information in logs such as date and hostname:

ex:

Jun 5 14:17:28 (hostname) httpd[4584]: [error] [client XXXX] File does not exist: /usr/local/apache2/htdocs/file

How can keep the log as it is without any additional information from syslog?

2
  • Can you clarify what you're doing ? Are you sending your httpd logs to a centralised syslog server on your network or are you just sending them to the syslog on the local machine ?
    – user9517
    Jun 5, 2013 at 7:04
  • I have 2 web servers and I want to write the access and error log in one place
    – user161834
    Jun 5, 2013 at 7:07

1 Answer 1

2

Don't log to syslog.

ErrorLog /my/own/log
2
  • Thank you for your reply, but I have 2 web servers and I want to write the access and error log in one place and I have other applications read from the logs to generate many reports and the change in the form of logs make many of the problems.
    – user161834
    Jun 5, 2013 at 7:05
  • 2
    You will have to do something different, then. For instance use different log analysis tools. And the first step will be don't log to syslog. Jun 5, 2013 at 7:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .