Connecting to elastic service