Re: syslog convert to lowercase

2009-01-05 Thread Victor Duchovni
On Mon, Jan 05, 2009 at 03:53:22PM +0530, ram wrote: > > On Sun, 2009-01-04 at 13:48 -0500, Victor Duchovni wrote: > > On Sun, Jan 04, 2009 at 08:33:12PM +0530, Ramprasad wrote: > > > > > My logfiles are approx 1.5 GB each, if we rotate twice a day > > > grep sender.*recipient $logfile is really

Re: syslog convert to lowercase

2009-01-05 Thread ram
On Sun, 2009-01-04 at 13:48 -0500, Victor Duchovni wrote: > On Sun, Jan 04, 2009 at 08:33:12PM +0530, Ramprasad wrote: > > > My logfiles are approx 1.5 GB each, if we rotate twice a day > > grep sender.*recipient $logfile is really much much faster than grep > > -i sender.*recipient $logfile >

Re: syslog convert to lowercase

2009-01-04 Thread Victor Duchovni
On Sun, Jan 04, 2009 at 08:33:12PM +0530, Ramprasad wrote: > My logfiles are approx 1.5 GB each, if we rotate twice a day > grep sender.*recipient $logfile is really much much faster than grep > -i sender.*recipient $logfile > IMHO grep would not count as lousy code ( on linux ) Use "egrep -i"

Re: syslog convert to lowercase

2009-01-04 Thread Henrik K
On Sun, Jan 04, 2009 at 08:33:12PM +0530, Ramprasad wrote: > > My logfiles are approx 1.5 GB each, if we rotate twice a day > grep sender.*recipient $logfile is really much much faster than grep > -i sender.*recipient $logfile > IMHO grep would not count as lousy code ( on linux ) And are you s

Re: syslog convert to lowercase

2009-01-04 Thread Ramprasad
Terry Carmen wrote: Henrik K wrote: On Sat, Jan 03, 2009 at 04:51:04PM +0530, ram wrote: Can all the logs be made in lowercase only atleast the sender and the recipient emailids Since we have huge logs, searching for something in the logs is quite expensive. And doing it case insensitive rea

Re: syslog convert to lowercase

2009-01-03 Thread Terry Carmen
Henrik K wrote: On Sat, Jan 03, 2009 at 04:51:04PM +0530, ram wrote: Can all the logs be made in lowercase only atleast the sender and the recipient emailids Since we have huge logs, searching for something in the logs is quite expensive. And doing it case insensitive really sucks the resour

Re: syslog convert to lowercase

2009-01-03 Thread Henrik K
On Sat, Jan 03, 2009 at 04:51:04PM +0530, ram wrote: > Can all the logs be made in lowercase only atleast the sender and the > recipient emailids > > Since we have huge logs, searching for something in the logs is quite > expensive. And doing it case insensitive really sucks the resources > If pos

Re: syslog convert to lowercase

2009-01-03 Thread Victor Duchovni
On Sat, Jan 03, 2009 at 04:51:04PM +0530, ram wrote: > Can all the logs be made in lowercase only atleast the sender and the > recipient emailids > > Since we have huge logs, searching for something in the logs is quite > expensive. And doing it case insensitive really sucks the resources > If po

Re: syslog convert to lowercase

2009-01-03 Thread mouss
ram a écrit : > Can all the logs be made in lowercase only atleast the sender and the > recipient emailids > > Since we have huge logs, searching for something in the logs is quite > expensive. why not write a script to parse the logs and store them in a format that makes searching easier? > An

Re: syslog convert to lowercase

2009-01-03 Thread Luigi Rosa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ram said the following on 03/01/09 12:21: > Can all the logs be made in lowercase only atleast the sender and the > recipient emailids You could to it when the message "enters" syslog process. Many syslog daemons such as for instance rsyslog have su