so, every 5 minutes, i monitor some data files based on their line numbers.
so if i checked now and there are 100 lines in the file, i will scan the 100 lines for specific errors.
if i check again 5 minutes later and there are 150 lines in the file, i will monitor the file from line 100 to 150. since only 50 lines were added since i last checked.
now, lets say the file being monitored is called dataccess.log.
when this file gets rotated, it is named dataccess.log.gz.
and then there's a new file called dataccess.log
i know there are commands such as zgrep, zcat and these other types on linux. but these commands dont exist on other UNIX OSes, i.e. solaris.
so my question is, how would you guys scan the "gzipped" version of the file to make sure you didn't miss anything? then scan the dataccess.log as usual. keep in mind i already have the line numbers on record. so maybe that could be of use to you?