Current time: 11-17-2024, 05:42 PM Hello There, Guest! (LoginRegister)


Post Reply 
Apache log files
Author Message
urug Offline
Newbie
*

Posts: 7
Joined: Jul 2009
Reputation: 0
Post: #1
Apache log files
Hi
I would like to ask a question.

What is the purpose of the /var/log/apache2/domain-combined.log file,
which has the same content as /var/log/apache2/user/domain-access.log,
and is rotated at the same time?
08-12-2009 04:09 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Apache log files
/var/log/apache2/user/domain-access.log is the ApacheLog for the Customer Log.
/var/log/apache2/domain-combined.log is used for the traffic count

Greez BeNe
08-12-2009 05:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #3
RE: Apache log files
Quote:/var/log/apache2/domain-combined.log is used for the traffic count

... and for awstats, I think.
08-12-2009 08:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
urug Offline
Newbie
*

Posts: 7
Joined: Jul 2009
Reputation: 0
Post: #4
RE: Apache log files
Okay, I understand. But if this 2 files have same content, why don't use one of them? Or maybe I should disable logrotate for /var/log/apache2/*log?
08-12-2009 02:50 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #5
RE: Apache log files
Quote:Okay, I understand. But if this 2 files have same content, why don't use one of them?

They don't have the exact same content. Combined log includes failing pages (http response 4xx and 5xx), whereas acces log only shows OK (http 2xx) pages.

Quote:Or maybe I should disable logrotate for /var/log/apache2/*log?

No, it's ok to rotate both of them.
08-12-2009 04:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
urug Offline
Newbie
*

Posts: 7
Joined: Jul 2009
Reputation: 0
Post: #6
RE: Apache log files
I understand the point, thanks :-)
08-12-2009 05:23 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)