I have filebeat installed on one machine. and elasticsearch and kibana on one machine. and logstash on another machine. I am using an ansible playbook which picks logs using filebeat and ships it to logstash. Eevrything is working fine. index pattern is also getting created. But getting an issue while creating data view.
curl -X POST "elasticip:5601/api/data_views/data_view" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
"name": "My Logstash Data View"
' -u user:pwd
but getting a 404 not found error. Even when i try to execute this command manually on elastic machine. Note elastic is a private ip. Ansible m/c has a public ip