Hey folks,
I am currently trying to trigger an Elasticsearch snapshot using curl. However curl against Kibana does not work at all for me. I am trying to execute the commands from the documentation: https://www.elastic.co/guide/en/elasticsearch/reference/6.2/modules-snapshots.html
My elastic stack runs in Docker containers and 5601 is open on the host. I can use the GUI.
curl -X PUT "https://my.elk.server:5601/app/kibana#/dev_tools/console/_snapshot/my_backup/snapshot_1?wait_for_completion=true" {"statusCode":404,"error":"Not Found"}
The only error I get, even with LOGGING_VERBOSE: true
, is this:
{"type":"response","@timestamp":"2018-04-18T14:14:05Z","tags":[],"pid":1,"method":"put","statusCode":404,"req":{"url":"/app/kibana","method":"put","headers":{"host":"master.elk.demo:5601","user-agent":"curl/7.52.1","accept":"*/*","content-type":"application/json","content-length":"102"},"remoteAddress":"10.200.14.80","userAgent":"10.200.14.80"},"res":{"statusCode":404,"responseTime":26,"contentLength":9},"message":"PUT /app/kibana 404 26ms - 9.0B"}
The commands works from the Kibana GUI btw.
curl ing against the GUI itself works aswell and returns a HTML document.
curl "https://my.elk.server:5601/app/kibana"
Does anyone have an idea what I am doing wrong?
Best regards