Upgrade elasticsearch in agent