Hi,
I want to change the default value of "metrics:max_buckets" at startup of Kibana.
The end user should not have to go into advanced settings and change this for each kibana instance.
I have tried curl command to set it but not succeed.
I get code 400 in return every time.
Can someone tell me what is wrong?
curl --verbose -POST "http://kibana:5601/api/kibana/settings/metrics:max_buckets" -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linu…) Gecko/20100101 Firefox/56.0' -H 'Accept: application/json, text/plain, /' -H 'Acc
ept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip' -H 'Content-Type: application/json;charset=utf-8' -H 'kbn-version: 5.6.3' -d '{"value":"3000"}'
- Trying 10.68.32.158...
- TCP_NODELAY set
- Connected to kibana.service.consul (10.68.32.158) port 5601 (#0)
POST /api/kibana/settings/metrics:max_buckets HTTP/1.1
Host: kibana.service.consul:5601
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linu…) Gecko/20100101 Firefox/56.0
Accept: application/json, text/plain, /
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip
Content-Type: application/json;charset=utf-8
kbn-version: 5.6.3
Content-Length: 16
- upload completely sent off: 16 out of 16 bytes
< HTTP/1.1 400 Bad Request
< kbn-name: kibana
< kbn-version: 5.5.2
< content-type: application/json; charset=utf-8
< cache-control: no-cache
< vary: accept-encoding
< content-encoding: gzip
< Date: Tue, 31 Oct 2017 18:34:57 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
<
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: " to save to a file.- Failed writing body (0 != 10)
- Failed writing data
- Closing connection 0
Br Mathias