Create data view api

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'
"data_view": {
"title": "logstash-*",
"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

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