Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Seperating my Apache 2 Log Files?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Negated Void
l33t
l33t


Joined: 25 Dec 2002
Posts: 672

PostPosted: Wed Feb 23, 2005 5:26 pm    Post subject: Seperating my Apache 2 Log Files? Reply with quote

Hello!
I would like to seperate my apache 2 log files.

This seems like a two part problem for me:
1) I have several VHOSTS, and i believe something in the conf files will cut these apart, but for some reason i'm too lame to figure it out..
2) I have several users on my main server, and they get accounte like domain.com/~user - I would like to create seperate access_log's for each ~user, I'm thinking i'd need some form of batch script to cut them apart?

Lastly, If possible, I'd like to have a master-log of them all.

Ideally then I'd run webalizer of each on seperately, plus the master one, to get a better idea of how my various hosted websites are utalizing my server (as it stands, for instance, i can't see any of the popular files beyond the most popular site, because it gets 100,000 hits a day, drowning the smaller sites off the list).

Any clue how to accomplish any of these, or is there some "better solution" to which I am clueless? :-D

Thanks in advance for you time,
--Murph
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Wed Feb 23, 2005 7:50 pm    Post subject: Reply with quote

have you seen this?
http://httpd.apache.org/docs/mod/mod_log_config.html
Back to top
View user's profile Send private message
Negated Void
l33t
l33t


Joined: 25 Dec 2002
Posts: 672

PostPosted: Wed Feb 23, 2005 7:59 pm    Post subject: Reply with quote

I assume that that will work with apache 2 as well?

All I gleamed from that was the ability to include the vhost in the log files. So i'd still need some batch-madness to split the log files by vhost, and by user?

--Matt
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Wed Feb 23, 2005 9:59 pm    Post subject: Reply with quote

use the customlog directive:
http://httpd.apache.org/docs/mod/mod_log_config.html#customlog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum