Hi @nchaulet
thanks for that. I tried to use your code but got some errors. In my case i had to add --insecure and -u elastic:password
After that I still get an error:
curl -u elastic:password \
--insecure \
--request POST \
--url https://127.0.0.1:5601/api/fleet/outputs/fleet-default-output \
--header 'kbn-xsrf: true' \
--data '{
"name": "default",
"type": "elasticsearch",
"hosts": [
"https://localhost:9200"
],
"is_default": true,
"is_default_monitoring": true,
"config_yaml": "#test",
"ca_trusted_fingerprint": "87:29:43:88:E1.....B5:70:E1:55:91:63"
}'
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Also if I use the webserver instead of the kibana service itself with --url https://localhost/api/fleet/outputs/fleet-default-output \ I am getting the following:
{"statusCode":404,"error":"Not Found","message":"Not Found"}
Not sure whats wrong in any case.
Best Regards