Moved log parsing code from server side to client side