Apache Logging

Now we have separate file that keeps errors track for each domain individually and put's a log in to var/log/virtualmin/domainname.com_error_log. Is there also a possibility to duplicate an error log on the other file while keeping the main error log?

Status: 
Closed (fixed)

Comments

It sounds like you're asking if you can have two error logs for a domain.

Unfortunately, I don't believe that's possible -- Apache appears to only allow one error log per site.

Ilia's picture
Submitted by Ilia on Wed, 04/03/2013 - 08:23

Understood! There are some other options in logging under each site? how do you use it?

Hmm, which options did you have questions about?

Ilia's picture
Submitted by Ilia on Wed, 04/03/2013 - 10:36

For example:

Named log formats: Nickname Format

I wouldn't recommend changing that... however, for folks with unusual requirements, it's possible to change the format of the Apache access logs.

The options for that are available here in the Apache mod_log_config documentation:

http://httpd.apache.org/docs/2.2/mod/mod_log_config.html

However, I really would recommend against changing that, and doing so can break tools that calculate statistics and bandwidth usage based on the logs.