I used the below command
curl -k --show-error "10.254.43.178:5601/api/kibana/settings" --max-time 3 --retry 1 -H 'kbn-version: 7.0.1' -H 'Content-Type: application/json' --data-binary '{"changes":{"defaultIndex":"giouxou_index_pattern"}}' --compressed --write-out %{http_code}
giouxou_index_pattern doesn't exists but the above command give as http response
{"settings":{"buildNum":{"userValue":23202},"defaultIndex":{"userValue":"giouxou_index_pattern"}}}200
and as curl status 0.
Also in kibana before commad the default index-pattern was the fmdata but after the command it is not any more as shown in the below snip
With this command you are setting a kibana index-pattern as default. In my kibana only fmdata index-pattern exists and initially fmdata was set to be the default index-pattern. But when I am setting as default index-pattern the non existing index-pattern giouxou_index_pattern , I get as http response 200 -> OK and in kibana i see that the existing index-pattern fmdata is not the default one anymore.
Shouldn't kibana not to accept to set a non existing index-pattern as default?
Thank you in advance!
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.