Date: Mon, 30 Mar 2009 23:09:10 +0200 From: Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net> To: freebsd-questions@freebsd.org Cc: Charles Howse <chowse@charter.net> Subject: Re: analyzing httpd-error.log Message-ID: <200903302309.11020.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> In-Reply-To: <82E8EACC-E6A3-48FA-9203-80A5F924870F@charter.net> References: <5BCD53E0-5B9F-4349-8401-FBF0ACF369C2@charter.net> <200903302211.30208.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <82E8EACC-E6A3-48FA-9203-80A5F924870F@charter.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 30 March 2009 22:55:35 Charles Howse wrote: > grep "$date" httpd-error.log | grep -v 192.168.254.254 | grep -v > 192.168.254.3 > /root/err.log Using pcregrep, installed by devel/pcre, typically available on apache systems: pcregrep "$date.* \[client (?!192\.168\.254)" /var/log/httpd-error.log | \ mail -s"Error log for $date" charles Should work. As far as I know, look ahead assertions aren't supported by re(7) or the extended version. -- Mel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903302309.11020.mel.flynn%2Bfbsd.questions>