We need to do some analysis in one of our applications. The log entries have the format:
2020-09-21 08:32:06 LoginService.login benchmark total(10003ms) non-login-total(10003ms) login-total0(0ms)[]
I wanted to search in this pattern with text ending in non-login total()
followed by login-total
in the above mentioned timestamp range, e.g. from 08:30 to 08:35. I tried a few options, but could not get the pattern with the text non-login
and login-total
as well. Please provide examples using zgrep
as its a .gz
file. Any help in this regard is really appreciated.