query logs in elastic search store