Running cURL commands from desktop to access ES on AWS

I am trying to run a scheduled cron job with a cURL command from my desktop terminal, however, when I run the command it returns this error: "curl: (7) Failed to connect to localhost port 9200: Connection refused".

We are running ES on AWS, when executing commands within Kibana, everything works fine. When trying to access remotely from a desktop terminal, we get a returned error. The cURL expression starts with: "curl -XPOST "http://localhost:9200/entity/_update_by_query?conflicts=proceed" -H 'Content-Type:..."

Is there a different configuration for the cURL I should be using, or is there a way to set up a cron scheduled task within the elastic environment?

Welcome to our community! :smiley:

You need to change localhost to whatever the IP/domain of your cluster on AWS is.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.