NYCPHP Meetup

NYPHP.org

[nycphp-talk] OT: Apache access_log integrity

jon baer jonbaer at jonbaer.net
Fri Oct 3 09:11:47 EDT 2003


i think i forgot to mention that sed can delete lines cleanly in place (u
might have known this) ...

sed -i.backup "/192.168.0.1/d" /var/log/httpd/access.1

- jon

----- Original Message -----
From: "D C Krook" <dkrook at hotmail.com>
To: <talk at lists.nyphp.org>
Sent: Thursday, October 02, 2003 8:48 PM
Subject: RE: [nycphp-talk] OT: Apache access_log integrity


> Psaw, Hans and Jon,
>
> Thanks for all the suggestions.   I think I'm going to settle on a
> combination of the following solution:
>
> - a daily cron job that strips by regex my two most common IP variations,
> - a standalone script that does the same with given parameters,
> - take advantage of Webalizer's exclusion options.  Psaw, thanks for the
> tip, I really didn't realize it was that flexible but it has a ton of
great
> conf options that can be used retroactively against already generated
> reports.
>
> Thanks again for the tips, I'll keep you posted if I need to add some more
> processing or if I find a simpler solution.
>
> -Dan
>
>
> >Did you look at Webalizer, an app that has many startup config options
that
> >allow you to remove/massage info to generate focused reports and charts
> >from
> >Apache logs. Also, cron to grab, analyze and archive your logs
> >systematically.
> >Then maybe you could do some set it and forget it type of processing.
PSaw
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>




More information about the talk mailing list