![]() |
Single combine log, is possible? - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: Single combine log, is possible? (/thread-6982.html) |
Single combine log, is possible? - romeo - 06-17-2009 02:38 AM Hi all, I wuold like to know if there is a way to have a single combine log for all the virtual host in a server. I have tried to edit the apache2.conf and adding Cusomlog directive, but i suppose this is not the right way. My idea is to use the tail -f command to see al the web server traffic in real time, i don't really need a single log file, maybe there is a unix turnaround i don't know. Thanks in advance Romeo RE: Single combine log, is possible? - kilburn - 06-17-2009 10:43 PM Quote:I wuold like to know if there is a way to have a single combine log for all the virtual host in a server. Add an additional "CustomLog" directive to the apache's main configuration file ![]() RE: Single combine log, is possible? - romeo - 06-19-2009 07:15 PM I have tried to add it, but the result is like this: ::1 - - [16/Jun/2009:18:21:55 +0200] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 (internal dummy connection )" I thins something went wrong in mi directive. I have tried that in apache2.conf LogFormat "%v %l %u %t \"%r\" %>s %b" comonvhost CustomLog /var/log/apache2/access_log comonvhost and also there: CustomLog /var/log/apache2/common_log common CustomLog /var/log/apache2/referrer_log referrer CustomLog /var/log/apache2/combined_log combined CustomLog /var/log/apache2/agent_log agent but nope. Which is the right customlog directive for virtual server under ispcp? RE: Single combine log, is possible? - kilburn - 06-19-2009 08:05 PM Which ispcp version are you using? RE: Single combine log, is possible? - romeo - 06-19-2009 08:22 PM ispCP 1.0.0 RC6 OMEGA build: 20080806 RE: Single combine log, is possible? - kilburn - 06-20-2009 01:56 AM This version used a different log handling method than the current one (stable), and I'm quite sure that it doesn't allow output both per-user logs and a global one. Thus, your only option is to "tail all them at once": Code: cd /var/log/apache2 To stop seeing logs, you'll have to kill the bunch of tail processes: Code: killall /usr/bin/tail RE: Single combine log, is possible? - romeo - 06-20-2009 03:37 AM Thanks, i will try the trick for now and plan an upgrade in the next few months. |