It looks like you have to update your output configuration, elasticsearch host is pointing to 127.0.0.1, while probably you want to point it to your host. Check your VM network settings, and set the right host there.
I had updated the metricbeat .yml with the IP of my host but upon executing the import dashboard above error had been observed.
VM is having the internet access as well.
Same metric beat import dashboard script is working on the local machine.
Is there any config setting in import dashboard script that needs to be updated.
I don't see a clear explanation, do you have any antivirus/firewall running on the machine? It could cause this. Also, could you run metricbeat in debug mode?:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.