Production logs file are huge in size and are stored in compressed format.
I use the following to find specific log line
zgrep searchString LargeLogFiles*.gz
Typically this takes huge amount of time, when this runs on multiple files at once.
In my case, I am aware that the search string I'm trying to find (if present) will lie in 50% to 70% of the part of the file for sure. Is there any way I can leverage this information for faster search?
Possible solution zcat the file and filter the part using other unix commands. This is a possbility, but interested to know if there is a good/efficient way to achieve the above said problem.