<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Split apache Logs With vlogger in debian etch</title>
	<atom:link href="http://www.debianadmin.com/how-to-split-apache-logs-with-vlogger-in-debian-etch.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.debianadmin.com/how-to-split-apache-logs-with-vlogger-in-debian-etch.html</link>
	<description>Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:01:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Robert Sajan</title>
		<link>http://www.debianadmin.com/how-to-split-apache-logs-with-vlogger-in-debian-etch.html/comment-page-1#comment-8828</link>
		<dc:creator>Robert Sajan</dc:creator>
		<pubDate>Mon, 29 Aug 2011 07:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/how-to-split-apache-logs-with-vlogger-in-debian-etch.html#comment-8828</guid>
		<description>The error in the form of: 

[error] (2)No such file or directory: could not open transfer log file /etc/apache2/\xe2\x8e\xaa /usr/sbin/vlogger -s access.log -u www-logs -g www-logs /var/log/apache.
Unable to open logs

Is caused by using the example in the vlogger&#039;s man file which contains a non-standard (at least for my system) pipe character:

CustomLog &quot;? /usr/sbin/vlogger -s access.log -u www-logs -g www-logs /var/log/apache&quot; combined

Apparently the &quot;\xe2\x8e\xaa&quot; is UTF-8 encoding for a character that looks like a pipe (i.e. &quot;&#124;&quot;) but in fact is not seen as a pipe on my linux system (I&#039;m using Ubuntu). (See http://www.utf8-chartable.de/unicode-utf8-table.pl?start=9088&amp;number=128&amp;names=-&amp;utf8=string-literal)

The following shows two pipe-like characters together (the first being the one from the man file, the second is a pipe I typed from my keyboard): 

CustomLog &quot;?&#124; /usr/sbin/vlogger -s access.log -u www-logs -g www-logs /var/log/apache&quot; combined

They should look look slightly different to you. 

Replace the man file&#039;s pipe character in the CustomLog example with a pipe from your keyboard - and apache should restart without complaint.</description>
		<content:encoded><![CDATA[<p>The error in the form of: </p>
<p>[error] (2)No such file or directory: could not open transfer log file /etc/apache2/\xe2\x8e\xaa /usr/sbin/vlogger -s access.log -u www-logs -g www-logs /var/log/apache.<br />
Unable to open logs</p>
<p>Is caused by using the example in the vlogger&#8217;s man file which contains a non-standard (at least for my system) pipe character:</p>
<p>CustomLog &#8220;? /usr/sbin/vlogger -s access.log -u www-logs -g www-logs /var/log/apache&#8221; combined</p>
<p>Apparently the &#8220;\xe2\x8e\xaa&#8221; is UTF-8 encoding for a character that looks like a pipe (i.e. &#8220;|&#8221;) but in fact is not seen as a pipe on my linux system (I&#8217;m using Ubuntu). (See <a href="http://www.utf8-chartable.de/unicode-utf8-table.pl?start=9088&#038;number=128&#038;names=-&#038;utf8=string-literal" rel="nofollow">http://www.utf8-chartable.de/unicode-utf8-table.pl?start=9088&#038;number=128&#038;names=-&#038;utf8=string-literal</a>)</p>
<p>The following shows two pipe-like characters together (the first being the one from the man file, the second is a pipe I typed from my keyboard): </p>
<p>CustomLog &#8220;?| /usr/sbin/vlogger -s access.log -u www-logs -g www-logs /var/log/apache&#8221; combined</p>
<p>They should look look slightly different to you. </p>
<p>Replace the man file&#8217;s pipe character in the CustomLog example with a pipe from your keyboard - and apache should restart without complaint.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: none</title>
		<link>http://www.debianadmin.com/how-to-split-apache-logs-with-vlogger-in-debian-etch.html/comment-page-1#comment-7968</link>
		<dc:creator>none</dc:creator>
		<pubDate>Wed, 12 Jan 2011 13:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/how-to-split-apache-logs-with-vlogger-in-debian-etch.html#comment-7968</guid>
		<description>Tried the vlogger and always got this:
 [error] (2)No such file or directory: could not open transfer log file /etc/apache2/\xe2\x8e\xaa /usr/sbin/vlogger -s access.log -r 204800 -u www-logs -g www-logs /var/log/apache2.
Unable to open logs
Action &#039;restart&#039; failed.

Opps</description>
		<content:encoded><![CDATA[<p>Tried the vlogger and always got this:<br />
 [error] (2)No such file or directory: could not open transfer log file /etc/apache2/\xe2\x8e\xaa /usr/sbin/vlogger -s access.log -r 204800 -u www-logs -g www-logs /var/log/apache2.<br />
Unable to open logs<br />
Action &#8216;restart&#8217; failed.</p>
<p>Opps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Schmidt</title>
		<link>http://www.debianadmin.com/how-to-split-apache-logs-with-vlogger-in-debian-etch.html/comment-page-1#comment-2337</link>
		<dc:creator>Benjamin Schmidt</dc:creator>
		<pubDate>Sun, 01 Feb 2009 22:07:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/how-to-split-apache-logs-with-vlogger-in-debian-etch.html#comment-2337</guid>
		<description>If you don&#039;t use virtualhost and do the whole website to directory mapping with mod_rewrite, you have to use %V instead of %v in the line LogFormat...

UseCanonicalName Off
RewriteEngine on
###
# Only a domain         - eg.   linux.org            dyndns.org
#               /var/www/linux.org/                  /var/www/dyndns.org/
#
RewriteCond     %{SERVER_NAME}  ^([^.]+)\.([^.]+)$
RewriteRule     ^(.*)$          /var/www/%1.%2$1

###
# One host              - eg.   www.linux.org        schmidi2.dyndns.org
#               /var/www/linux.org/www/              /var/www/dyndns.org/schmidi2/
#
RewriteCond     %{SERVER_NAME}  ^([^.]+)\.([^.]+)\.([^.]+)$
RewriteRule     ^(.*)$          /var/www/%2.%3/%1$1

###
# Two hosts             - eg.   lists.admin.linux.org        blog.schmidi2.dyndns.org
#               /var/www/linux.org/admin/lists/                      /var/www/dyndns.org/schmidi2/blog/
#
RewriteCond     %{SERVER_NAME}  ^([^.]+)\.([^.]+)\.([^.]+)\.([^.]+)$
RewriteRule     ^(.*)$          /var/www/%3.%4/%2/%1$1

###
# Else show an error page
#

# --&gt; Not Found




Use:

## vlogger
LogFormat &quot;%V %h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; combined</description>
		<content:encoded><![CDATA[<p>If you don&#8217;t use virtualhost and do the whole website to directory mapping with mod_rewrite, you have to use %V instead of %v in the line LogFormat&#8230;</p>
<p>UseCanonicalName Off<br />
RewriteEngine on<br />
###<br />
# Only a domain         - eg.   linux.org            dyndns.org<br />
#               /var/www/linux.org/                  /var/www/dyndns.org/<br />
#<br />
RewriteCond     %{SERVER_NAME}  ^([^.]+)\.([^.]+)$<br />
RewriteRule     ^(.*)$          /var/www/%1.%2$1</p>
<p>###<br />
# One host              - eg.   <a href="http://www.linux.org" rel="nofollow">http://www.linux.org</a>        schmidi2.dyndns.org<br />
#               /var/www/linux.org/www/              /var/www/dyndns.org/schmidi2/<br />
#<br />
RewriteCond     %{SERVER_NAME}  ^([^.]+)\.([^.]+)\.([^.]+)$<br />
RewriteRule     ^(.*)$          /var/www/%2.%3/%1$1</p>
<p>###<br />
# Two hosts             - eg.   lists.admin.linux.org        blog.schmidi2.dyndns.org<br />
#               /var/www/linux.org/admin/lists/                      /var/www/dyndns.org/schmidi2/blog/<br />
#<br />
RewriteCond     %{SERVER_NAME}  ^([^.]+)\.([^.]+)\.([^.]+)\.([^.]+)$<br />
RewriteRule     ^(.*)$          /var/www/%3.%4/%2/%1$1</p>
<p>###<br />
# Else show an error page<br />
#</p>
<p># --&gt; Not Found</p>
<p>Use:</p>
<p>## vlogger<br />
LogFormat &#8220;%V %h %l %u %t \&#8221;%r\&#8221; %&gt;s %b \&#8221;%{Referer}i\&#8221; \&#8221;%{User-Agent}i\&#8221;" combined</p>
]]></content:encoded>
	</item>
</channel>
</rss>

