Apache and logging: Selective logging?

Apache and logging: Selective logging?

Post by Denise Carlso » Thu, 09 Oct 1997 04:00:00



I am wondering if Apache supports any sort of selective logging.
For example, is there some line I can put in one of the configuration
files so that everything but *.jpg and *.gif files will be logged?
Or perhaps from the other direction: is there any way I can tell the
server to only record *.html and *.cfm accesses to the access_log,
and not bother with anything else?

No, I am not concerned about disk space, that is not why I ask.
I can do this sort of selective logging with my FTP server, and
I am wondering if it's possible with my web server.

Denise Carlson


 
 
 

Apache and logging: Selective logging?

Post by Len Padill » Sun, 12 Oct 1997 04:00:00



> I am wondering if Apache supports any sort of selective logging.
> For example, is there some line I can put in one of the configuration
> files so that everything but *.jpg and *.gif files will be logged?
> Or perhaps from the other direction: is there any way I can tell the
> server to only record *.html and *.cfm accesses to the access_log,
> and not bother with anything else?

> No, I am not concerned about disk space, that is not why I ask.
> I can do this sort of selective logging with my FTP server, and
> I am wondering if it's possible with my web server.

> Denise Carlson



The rotatelogs log filter that comes with apache (contrib directory)
could be modified to not write any *.gif and *.jpg requests.

--
Len Padilla

WWW.Padilla.Net

 
 
 

1. Apache: selective logging (spider filling the logs)

We have a very stupid spider hitting our site hard. We've used mod_rewrite
to deny any requests from the HTTP_USER_AGENT but it still keeps coming
and filling our logs. Is it possible -- short of hacking the logging code and
recompiling -- to config Apache to *not* log based on certain criteria?
Ideally this might be configurable, to use a diff log based on certain criteria.
E.G. internal staff use could go to a non-reported log, requests for "private"
areas could go to a log not made publicly available (e.g. ISP's or shared hosts),
and in our case, stupid abusers could be logged (access and error) to /dev/null

Is there anything already written to at least do what we'd like, log requests
for a certain user agent to /dev/null ???

TIA, Peter

2. kernel not honoring init= bootparm?

3. Selective logging with Apache 1.0?

4. pppd, 30 sec delay when dialing in

5. Selective logging for apache

6. Q?

7. Apache 1.3x Selective Logging?

8. OSE 5.0 Hangs w/out tape in drive

9. Check your ppp.log or ppp.tun0.log in /var/log

10. ipppd logs in /var/log/ipppd-auth.log ??

11. logging - "secure" logs don't tell me who is logging in?

12. How can I get ipppd to log in /var/log/ipppd-auth.log ????

13. Apache logging module for breaking logs daily, CERN-style?