grep logs with exact logging format