fetching and parsing logs