Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way I can define multiple Error_Log locations in the apache configuration (logging the same error in 2 or more log files / pipes), or do I have to use a pipe & custom script to get this to work?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You can log errors to syslog; this provides more flexibility than logging to a single file, since syslog allows you to write as many files as you want.

share|improve this answer
1  
Hm, problem there is i lose the 'easy per (virtualh)host or per dir' locations, or I have to manualle parse that out again. Any quick solution for that that you know of? –  Wrikken Mar 2 '12 at 11:34
    
I guess it's one or the other. –  adaptr Mar 2 '12 at 16:15
    
Does this mean that there isn't a way to have multiple ErrorLog entries in an Apache config? –  bryan kennedy May 8 '12 at 21:51
    
Yes. There is only one errorlog per vhost, maximum. –  adaptr May 9 '12 at 9:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.