Getting Error while configuring ELK stack Filebeat to remote server via Terraform

Hello All,
My usecase is to deploy ELK stack to AWS ubuntu server. I have all the required installation and configurations commands in .sh file in the local. And while doing apply, I am getting error in the remote exec provisioner where this .sh file gets processed. Error says “error executing “/tmp/”: Process exited with status 7”
But I can see in the log that the actual error occurs during the execution of Curl command which is the last line of the .sh file. And the error in the log is “curl: (7) Failed to connect to port 9200: Connection refused”. And that particular curl command in the file is “sudo curl -XPUT ‘’ -d@/etc/filebeat/filebeat.template.json”.
The ELK version is: 5.2.0
Any help to resolve this issue would be highly appreciated.

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