Update query on agent log retrieval