Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2000 10:33:18 -0500
From:      "Drew J. Weaver" <drew.weaver@thenap.com>
To:        "'Nuttall, Matthew'" <matthew.nuttall@sage.com>, freebsd-isp@freebsd.org
Subject:   RE: Apache web access logs
Message-ID:  <B1A7D9973EBED3119ADD009027DC86491808EE@mailman.thenap.com>

next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0651A.04BEA272
Content-Type: text/plain;
	charset="windows-1252"

	When you specify each of your virtuals in the httpd.conf file you
can add a line to each one of them to specify a different log path.

  ErrorLog /var/www/orbityl/error_log
    LogLevel Warn
    LogFormat "%h %l %u %t \"%r\" %>s %b\"%{Referer}i\" \"%{User-Agent}i\""
com$
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent

This is an example, there is probably a command for AccessLog too, check
http://www.apache.org Just list the ErrorLog or AccessLog path in your site
definitions.

-Drew


-----Original Message-----
From: Nuttall, Matthew [mailto:matthew.nuttall@sage.com]
Sent: Wednesday, December 13, 2000 10:18 AM
To: freebsd-isp@freebsd.org
Subject: Apache web access logs


Hi, 
  I'm new to this Unix Lark, and I hope Im sending to the right list here, 
my problem is so

----------------
we are running apache and have around 100 virtual hosts, which I'm after
setting up wwwstats for.
I can get the program to work for the whole site ( I know not rocket
science), but I'm wondering how to set it up for each virtual hosts.

We were using seperate access logs for each one, but this kept crashing
apache.  So

1.  Are there any scripts out there that could split up my original log.
2.  Are there any better wwwstat programs (preferably implemented over a
secure shell)
3.  Its possible that one day we will have about a 1000 virtual hosts, is
opening a log file for each of these feasible (ie no serious performance
problems)

Any advice, tips ,recipes welcome

Matthew Nuttall,
SysAdmin,
Sage,
Manchester.
England.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message

------_=_NextPart_001_01C0651A.04BEA272
Content-Type: text/html;
	charset="windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dwindows-1252">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: Apache web access logs</TITLE>
</HEAD>
<BODY>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>When you =
specify each of your virtuals in the httpd.conf file you can add a line =
to each one of them to specify a different log path.</FONT></P>

<P><FONT SIZE=3D2>&nbsp; ErrorLog /var/www/orbityl/error_log</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; LogLevel Warn</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; LogFormat &quot;%h %l %u %t =
\&quot;%r\&quot; %&gt;s %b\&quot;%{Referer}i\&quot; =
\&quot;%{User-Agent}i\&quot;&quot; com$</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; LogFormat &quot;%h %l %u %t =
\&quot;%r\&quot; %&gt;s %b&quot; common</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; LogFormat &quot;%{Referer}i -&gt; =
%U&quot; referer</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; LogFormat =
&quot;%{User-agent}i&quot; agent</FONT>
</P>

<P><FONT SIZE=3D2>This is an example, there is probably a command for =
AccessLog too, check <A HREF=3D"http://www.apache.org" =
TARGET=3D"_blank">http://www.apache.org</A>; Just list the ErrorLog or =
AccessLog path in your site definitions.</FONT></P>

<P><FONT SIZE=3D2>-Drew</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Nuttall, Matthew [<A =
HREF=3D"mailto:matthew.nuttall@sage.com">mailto:matthew.nuttall@sage.com=
</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, December 13, 2000 10:18 AM</FONT>
<BR><FONT SIZE=3D2>To: freebsd-isp@freebsd.org</FONT>
<BR><FONT SIZE=3D2>Subject: Apache web access logs</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hi, </FONT>
<BR><FONT SIZE=3D2>&nbsp; I'm new to this Unix Lark, and I hope Im =
sending to the right list here, </FONT>
<BR><FONT SIZE=3D2>my problem is so</FONT>
</P>

<P><FONT SIZE=3D2>----------------</FONT>
<BR><FONT SIZE=3D2>we are running apache and have around 100 virtual =
hosts, which I'm after</FONT>
<BR><FONT SIZE=3D2>setting up wwwstats for.</FONT>
<BR><FONT SIZE=3D2>I can get the program to work for the whole site ( I =
know not rocket</FONT>
<BR><FONT SIZE=3D2>science), but I'm wondering how to set it up for =
each virtual hosts.</FONT>
</P>

<P><FONT SIZE=3D2>We were using seperate access logs for each one, but =
this kept crashing</FONT>
<BR><FONT SIZE=3D2>apache.&nbsp; So</FONT>
</P>

<P><FONT SIZE=3D2>1.&nbsp; Are there any scripts out there that could =
split up my original log.</FONT>
<BR><FONT SIZE=3D2>2.&nbsp; Are there any better wwwstat programs =
(preferably implemented over a</FONT>
<BR><FONT SIZE=3D2>secure shell)</FONT>
<BR><FONT SIZE=3D2>3.&nbsp; Its possible that one day we will have =
about a 1000 virtual hosts, is</FONT>
<BR><FONT SIZE=3D2>opening a log file for each of these feasible (ie no =
serious performance</FONT>
<BR><FONT SIZE=3D2>problems)</FONT>
</P>

<P><FONT SIZE=3D2>Any advice, tips ,recipes welcome</FONT>
</P>

<P><FONT SIZE=3D2>Matthew Nuttall,</FONT>
<BR><FONT SIZE=3D2>SysAdmin,</FONT>
<BR><FONT SIZE=3D2>Sage,</FONT>
<BR><FONT SIZE=3D2>Manchester.</FONT>
<BR><FONT SIZE=3D2>England.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>To Unsubscribe: send mail to =
majordomo@FreeBSD.org</FONT>
<BR><FONT SIZE=3D2>with &quot;unsubscribe freebsd-isp&quot; in the body =
of the message</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C0651A.04BEA272--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B1A7D9973EBED3119ADD009027DC86491808EE>