Forums Register Login
searching in log files
Hi friends

I have multiple log file of my application.I have to search a string from these file.currently i am using shell script to grep and cut some fields of that line in which string matched but it is giving response almost in 5 minute which is too much.

have we any alternative in java to search from multiple files which is faster than shell script.
(1 like)
Unlikely. grep is quite fast, and if that's too slow then I doubt Java will be any faster.
grep is working slow because there are 5 days logs ,i think 60 text files each file with a lot of data.

is there not any fast searching than it in Perl also.
You can try, but sometimes the amount of data is so large that it will take a lot of time, no matter what technique you use.

This thread has been viewed 1678 times.

All times above are in ranch (not your local) time.
The current ranch time is
Sep 23, 2018 02:02:20.