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

user161834 asked:

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?

My answer:


Don’t log to syslog.

ErrorLog /my/own/log

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.