HTTPD Logwatch

HTTPD Logwatch

am 24.12.2009 19:18:28 von Asai

Greetings,

Is there a way which I can expand the logwatch entries for httpd which
will allow me to view the entire domain name instead of just the
relative uri? Like I have /this/page instead of www.mysite.com/this/page.

Thanks.

--
--asai


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: HTTPD Logwatch

am 24.12.2009 23:20:23 von aw

Asai wrote:
> Greetings,
>
> Is there a way which I can expand the logwatch entries for httpd which
> will allow me to view the entire domain name instead of just the
> relative uri? Like I have /this/page instead of www.mysite.com/this/page.
>
Can you explain what would be the point ?
Presumably, if clients access your site, you already know the name of
the site, no ?

Or maybe you want to look at this page :
http://httpd.apache.org/docs/2.2/mod/directives.html
and lookup the "CustomLog" and "LogFormat" directives.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: HTTPD Logwatch

am 24.12.2009 23:25:35 von Asai

I manage about 20 websites. So I need to see which ones are reporting
which things. I've checked the custom log in the past, it didn't do
what I wanted, but perhaps I didn't understand what I was doing--which
is quite likely.

André Warnier wrote:
> Asai wrote:
>> Greetings,
>>
>> Is there a way which I can expand the logwatch entries for httpd
>> which will allow me to view the entire domain name instead of just
>> the relative uri? Like I have /this/page instead of
>> www.mysite.com/this/page.
>>
> Can you explain what would be the point ?
> Presumably, if clients access your site, you already know the name of
> the site, no ?
>
> Or maybe you want to look at this page :
> http://httpd.apache.org/docs/2.2/mod/directives.html
> and lookup the "CustomLog" and "LogFormat" directives.
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

--
--asai


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: HTTPD Logwatch

am 25.12.2009 01:13:44 von aw

Asai wrote:
> I manage about 20 websites. So I need to see which ones are reporting
> which things. I've checked the custom log in the past, it didn't do
> what I wanted, but perhaps I didn't understand what I was doing--which
> is quite likely.

Maybe you want to explain what you mean by "logwatch" then ?
If this is a separate program from the Apache httpd suite, do not assume
anyone here knows what you are talking about.

As indicated below, you can change the format of the CustomLog to
include pretty much anything you want. Did you actually go look at
these pages ?

>
> André Warnier wrote:
>> Asai wrote:
>>> Greetings,
>>>
>>> Is there a way which I can expand the logwatch entries for httpd
>>> which will allow me to view the entire domain name instead of just
>>> the relative uri? Like I have /this/page instead of
>>> www.mysite.com/this/page.
>>>
>> Can you explain what would be the point ?
>> Presumably, if clients access your site, you already know the name of
>> the site, no ?
>>
>> Or maybe you want to look at this page :
>> http://httpd.apache.org/docs/2.2/mod/directives.html
>> and lookup the "CustomLog" and "LogFormat" directives.
>>
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server
>> Project.
>> See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: HTTPD Logwatch

am 25.12.2009 06:37:20 von kaustubh.deo

--001636e0a87f0ea214047b86f3bb
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I am naive user..but this is what comes to my mind...please see if this
helps

- create seperate logs per website...

SetEnvIf Referer www\.mydomain1\.com site1_request
CustomLog logs/mydomain1_log common env=3Dsite1_request

SetEnvIf Referer www\.mydomain2\.com site2_request
CustomLog logs/mydomain2_log common env=3Dsite2_request
....


Regards,
kaustubh

On Fri, Dec 25, 2009 at 5:43 AM, Andr=E9 Warnier wrote:

> Asai wrote:
>
>> I manage about 20 websites. So I need to see which ones are reporting
>> which things. I've checked the custom log in the past, it didn't do wha=
t I
>> wanted, but perhaps I didn't understand what I was doing--which is quite
>> likely.
>>
>
> Maybe you want to explain what you mean by "logwatch" then ?
> If this is a separate program from the Apache httpd suite, do not assume
> anyone here knows what you are talking about.
>
> As indicated below, you can change the format of the CustomLog to include
> pretty much anything you want. Did you actually go look at these pages ?
>
>
>
>> Andr=E9 Warnier wrote:
>>
>>> Asai wrote:
>>>
>>>> Greetings,
>>>>
>>>> Is there a way which I can expand the logwatch entries for httpd which
>>>> will allow me to view the entire domain name instead of just the relat=
ive
>>>> uri? Like I have /this/page instead of www.mysite.com/this/page.
>>>>
>>>> Can you explain what would be the point ?
>>> Presumably, if clients access your site, you already know the name of t=
he
>>> site, no ?
>>>
>>> Or maybe you want to look at this page :
>>> http://httpd.apache.org/docs/2.2/mod/directives.html
>>> and lookup the "CustomLog" and "LogFormat" directives.
>>>
>>>
>>> ------------------------------------------------------------ ---------
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--001636e0a87f0ea214047b86f3bb
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I am naive user..but this is what comes to my mind...please see if this hel=
ps


- create seperate logs per website...

<=
/div>
SetEnvIf Referer www\.mydomain1\.com site1_request
>
CustomLog logs/mydomain1_log common env=3Dsite1_request

>
SetEnvIf Referer www\.mydomain2\.com site2_request
CustomLo=
g logs/mydomain2_log common env=3Dsite2_request
...
>

Regards,
kaustubh

ass=3D"gmail_quote">On Fri, Dec 25, 2009 at 5:43 AM, Andr=E9 Warnier dir=3D"ltr"><> n> wrote:

x #ccc solid;padding-left:1ex;">
Asai wrote:

x #ccc solid;padding-left:1ex">
I manage about 20 websites. =A0So I need to see which ones are reporting wh=
ich things. =A0I've checked the custom log in the past, it didn't d=
o what I wanted, but perhaps I didn't understand what I was doing--whic=
h is quite likely.





Maybe you want to explain what you mean by "logwatch" then ?

If this is a separate program from the Apache httpd suite, do not assume an=
yone here knows what you are talking about.



As indicated below, you can change the format of the CustomLog to include p=
retty much anything you want. =A0Did you actually go look at these pages ?<=
div>




x #ccc solid;padding-left:1ex">


Andr=E9 Warnier wrote:

x #ccc solid;padding-left:1ex">
Asai wrote:

x #ccc solid;padding-left:1ex">
Greetings,



Is there a way which I can expand the logwatch entries for httpd which will=
allow me to view the entire domain name instead of just the relative uri? =
=A0Like I have /this/page instead of page" target=3D"_blank">www.mysite.com/this/page.





Can you explain what would be the point ?

Presumably, if clients access your site, you already know the name of the s=
ite, no ?



Or maybe you want to look at this page :

_blank">http://httpd.apache.org/docs/2.2/mod/directives.html

and lookup the "CustomLog" and "LogFormat" directives.<=
br>




------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g" target=3D"_blank">users-unsubscribe@httpd.apache.org

=A0" =A0 from the digest: httpd.apache.org" target=3D"_blank">users-digest-unsubscribe@httpd.apache.o=
rg


For additional commands, e-mail: org" target=3D"_blank">users-help@httpd.apache.org











------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g" target=3D"_blank">users-unsubscribe@httpd.apache.org

=A0" =A0 from the digest: httpd.apache.org" target=3D"_blank">users-digest-unsubscribe@httpd.apache.o=
rg


For additional commands, e-mail: org" target=3D"_blank">users-help@httpd.apache.org






--001636e0a87f0ea214047b86f3bb--

Re: HTTPD Logwatch

am 25.12.2009 07:41:56 von LuKreme

On 24-Dec-2009, at 22:37, Kaustubh Deorukhkar wrote:
> I am naive user..but this is what comes to my mind...please see if =
this
> helps
>=20
> - create seperate logs per website=85

You do this by specifying the logfile name and format in the the =
VirtualHost directives.

--=20
'I'm a raven, aren't I?' it said. 'One of the few birds who speak. The =
first thing people say is, oh, you're a raven, go on, say the N word... =
If I had a penny for every time that's happened, I'd-' --Soul Music


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: HTTPD Logwatch

am 25.12.2009 12:23:34 von aw

Kaustubh Deorukhkar wrote:
> I am naive user..but this is what comes to my mind...please see if this
> helps
>
> - create seperate logs per website...
>
> SetEnvIf Referer www\.mydomain1\.com site1_request
> CustomLog logs/mydomain1_log common env=site1_request
>
> SetEnvIf Referer www\.mydomain2\.com site2_request
> CustomLog logs/mydomain2_log common env=site2_request
> ...
>
This won't work. The "referer" is the name of the system the request
comes *from*, not the host who serves it.
As Lukreme mentions, you can have (and probably the OP has) different
logfiles for each website, with Virtual Hosts.
But I believe the OP's issue is different. The "logwatch" he's talking
about is probably some utility which monitors several logfiles at once.
But let him explain.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: HTTPD Logwatch

am 26.12.2009 20:40:46 von John Iliffe

On Fri, 2009-25-12 at 12:23 +0100, André Warnier wrote:
> Kaustubh Deorukhkar wrote:
> > I am naive user..but this is what comes to my mind...please see if this
> > helps
> >=20
> > - create seperate logs per website...
> >=20
> > SetEnvIf Referer www\.mydomain1\.com site1_request
> > CustomLog logs/mydomain1_log common env=3Dsite1_request
> >=20
> > SetEnvIf Referer www\.mydomain2\.com site2_request
> > CustomLog logs/mydomain2_log common env=3Dsite2_request
> > ...
> >=20
> This won't work. The "referer" is the name of the system the request=20
> comes *from*, not the host who serves it.
> As Lukreme mentions, you can have (and probably the OP has) different=20
> logfiles for each website, with Virtual Hosts.
> But I believe the OP's issue is different. The "logwatch" he's talking=20
> about is probably some utility which monitors several logfiles at once.
> But let him explain.
>=20
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>=20
==================== =====3D=
==================== =====3D=
==================== =====3D
Logwatch is a Linux/Unix utility that reports on whatever logs it is
requested to report. Here is the description from the MAN file.

"
LogWatch is a customizable, pluggable log-monitoring system. It will go
through your logs for a given period of time and make a report in
the areas that you wish with the detail that you wish. Easy to use -
works right out of the package on almost all systems.
"

Normally HTTPD logs are reported along with any other system logs. Here
is a sample of this morning's (remarkably small!) report for my server.
Most mornings this report is several hundred lines long; mostly hackers.

--------------------- httpd Begin ------------------------=20

A total of 2 unidentified 'other' records logged
GET /err HTTP/1.1 with response code(s) 404 1 responses
GET /./err HTTP/1.1 with response code(s) 404 1 responses

Requests with error response codes
GET /err HTTP/1.1 with response code(s) 404 1 responses
GET /././.html HTTP/1.1 with response code(s) 403 1 responses
GET /./.html HTTP/1.1 with response code(s) 403 1 responses
GET /./err HTTP/1.1 with response code(s) 404 1 responses
GET /.html HTTP/1.1 with response code(s) 403 1 responses

---------------------- httpd End -------------------------=20

------------------------------------------------------------ -----------

Regards,

John
==================== =====3D=
==================== =====3D=
=======3D



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: HTTPD Logwatch

am 28.12.2009 17:25:48 von Asai

============================================================ ======
> Logwatch is a Linux/Unix utility that reports on whatever logs it is
> requested to report. Here is the description from the MAN file.
>
> "
> LogWatch is a customizable, pluggable log-monitoring system. It will go
> through your logs for a given period of time and make a report in
> the areas that you wish with the detail that you wish. Easy to use -
> works right out of the package on almost all systems.
> "
>
> Normally HTTPD logs are reported along with any other system logs. Here
> is a sample of this morning's (remarkably small!) report for my server.
> Most mornings this report is several hundred lines long; mostly hackers.
>
Yes, that's correct. LogWatch is what I'm referring to. It's an
aggregation of HTTPD logs and other server logs which is emailed to me
daily.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org