Add a query for summarizing logs