I tried it on premises and parsed it by creating a json on one line and successfully moved it as desired via the curl command, but Elastic Cloud doesn't know how to write the host part when typing curl. So I tried in Logstash but I wrote username and password and logstash.yml in Cloud-id and it didn't work.