Re: Parsing large log files with PHP

From: Date: Tue, 24 Feb 2004 18:48:02 +0000
Subject: Re: Parsing large log files with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178753@lists.php.net to get a copy of this message
I'm not actually looking for stats in this case. We had a very strange occurrence yesterday wherein we had a few reports of porn links appearing on one of our websites. So basically I'm going to be looking for all log entries relating to that one specific section of our site (which won't be a huge number) and then I will just need to take a look through them and see if there's anything strange there. Ah in that case grep is your friend. just type
grep -i 'pornsite' logfile you don't need php at all.
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.

« previous php.general (#178753) next »