I want to update my Kibana chart by update .kibana index.
Here is what I'm doing:
POST .kibana/doc/visualization:fdf49d50-2c2c-11e8-8116-8b096c761d1b/_update
{
"script": "ctx._source.visualization.visState = params.visState",
"params": {
"visState": "{"title":"Global Performance Status","type":"gauge","params": {"addLegend": true,"addTooltip": true,"gauge": {"backStyle":"Full","colorSchema":"Green to Red","colorsRange": [{"from": 0,"to": 168},{"from": 168,"to": 268},{"from": 268,"to": 400} ],"extendRange": true,"gaugeColorMode":"Labels","gaugeStyle":"Full","gaugeType":"Arc","invertColors": false,"labels": {"color":"black","show": true },"orientation":"vertical","percentageMode": false,"scale": {"color":"#333","labels": false,"show": true },"style": {"bgColor": false,"bgFill":"#eee","bgMask": false,"bgWidth": 0.9,"fontSize": 60,"labelColor": true,"mask": false,"maskBars": 50,"subText":"","width": 0.9 },"type":"meter","verticalSplit": false},"isDisplayWarning": false,"type":"gauge" },"aggs": [{"id":"1","enabled": true,"type":"avg","schema":"metric","params": {"field":"durationmilliseconds","customLabel":"Global Average Duration (ms)"}}]}"
}
}
I got updated status, but field visState is empty when I check it in Management \ Kibana \ Objects \ Saved Visualizations.
Could you please help me.