It uses a helper batch file called `findrepl.bat` - download from: https://www.dropbox.com/s/rfdldmcb6vwi9xc/findrepl.bat
Place `findrepl.bat` in the same folder as the batch file or on the path.
Code: Select all
findrepl /V "^REPLICAT.*STOPPED" /e:"^$" <file.log >newfile.log
You mention that it should check for lag and checkpoint lag - I can see the checkpoint lag but I don't see a term for a different lag.
findrepl can search further in the log and is very quick for large files, where plain batch is quite slow, if you can outline a bit more of the items you need to check. I can see that checkpoint lag seems to be listed in hr:min:sec so do you need to check if the hour figure exceeds 5:59:59 ?