
24th October 2005, 17:46
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 1,186
Thanks: 60
Thanked 13 Times in 11 Posts
|
|
question about access.log from apache2
hi guys,
I found/var/log/apache2 which contains recent error.log but no access.log only an old version.
shouldn't it be there? I had a look inside my /etc/apache2/apache2 cfg file and found donly the logging for ispconfig is defined. Is that normal that I have to define it manually?
how would the line look to add an access.log for all the apache2 traffic ? I see the line for ispconfig log file is using cronolog, can I just copy that and modify the location (target) ?
|

24th October 2005, 18:29
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
You could use
Code:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /var/log/apache/access.log combined
in your main Apache configuration (you have to restart Apache after your changes).
|

24th October 2005, 18:44
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Quote:
|
Originally Posted by Tenaka
shouldn't it be there? I had a look inside my /etc/apache2/apache2 cfg file and found donly the logging for ispconfig is defined. Is that normal that I have to define it manually?
|
Why logging the traffic twice when ISPConfig already loggs the hits and splits them on a per vhost basis? If your server gets more traffic its not a good idea to burden apache with more logs then absolutely nescessary.
|

24th October 2005, 20:20
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 1,186
Thanks: 60
Thanked 13 Times in 11 Posts
|
|
till you are right, I had the same idea but I was away and the post was posted. remember I asked you about the same thing in this post http://www.howtoforge.com/forums/showthread.php?t=825 because I wanted to run webalizer on the whole serevr access log; I guess I was just shocked not to find the apache logs where I was expecting them ;-) of course I can use the logs generated for ispconfig
|

9th November 2005, 00:08
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 1,186
Thanks: 60
Thanked 13 Times in 11 Posts
|
|
am I right that there is no central logfile? I need to point a tool to the logfile and I need to enter a name. If the logfile would always have the same name and just get rotated weekly or daily or whatever that would be fine but it seems that the logfile always has the date appended, is that right?
|

9th November 2005, 09:48
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
The central logfile should be /var/log/apache/access.log or /var/log/httpd/access.log...
|

13th November 2005, 11:47
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 1,186
Thanks: 60
Thanked 13 Times in 11 Posts
|
|
in /var/log/httpd/ there are only the log files from/for ISPcfg which are already split for each day and in /var/log/apache/ there is an access.log which is 0-sized.
Also I don't know where this file comes from as there is only one directive in the apache2 cfg file telling it to create the ispcfg logfile...
so I need to tell apache2 to create one, right?
|

13th November 2005, 13:56
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Ify you cabt work withthe splitted logfiles from ISPConfig yo will have to create your oen logfile. Dont forget to rotate it
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 23:29.
|
Recent comments
23 hours 37 min ago
23 hours 42 min ago
1 day 4 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 17 hours ago
2 days 23 min ago
2 days 4 hours ago
2 days 5 hours ago