I have created a space test
and I want to fill it with the saved_object API.
I create a visualization (ID:nff) with the POST endpoint ( POST https://mykibana.flightwatching.com/bigdata/s/test/api/saved_objects/visualization/nff
)
In the .kibana index I can see it, but it does not appear in the test space. Can you tell me what is wrong?
in conf: kibana.index: .kibana-insight-val
GET .kibana*/_search
{
"query": {
"match": {
"_id": "test:visualization:nff"
}
}
}
RESULT:
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 12,
"successful" : 12,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : ".kibana-insight-val_4",
"_type" : "_doc",
"_id" : "test:visualization:nff",
"_score" : 1.0,
"_source" : {
"visualization" : {
"title" : "component change history (NFF)",
"visState" : """{"title":"component change history (NFF)","type":"metrics","params":{"id":"61ca57f0-469d-11e7-af02-69e470af7417","type":"timeseries","series":[{"id":"61ca57f1-469d-11e7-af02-69e470af7417","color":"rgba(255,255,255,0)","split_mode":"everything","metrics":[{"id":"61ca57f2-469d-11e7-af02-69e470af7417","type":"avg","field":"altitude"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":0.5,"stacked":"none","hidden":false,"label":"NOP","type":"timeseries"}],"time_field":"","index_pattern":"","interval":"","axis_position":"right","axis_formatter":"number","axis_scale":"normal","show_legend":0,"show_grid":1,"default_index_pattern":"wilco__insight-val__*","default_timefield":"@timestamp","isModelInvalid":false,"annotations":[{"fields":"REMOV_PART,REMOV_PART_DESCRIPTION,REMOV_SERIAL,WS_SUMUP,fwot","template":"{{fwot}} NFF - PN: {{REMOV_PART}} ({{REMOV_PART_DESCRIPTION}}) / SN: {{REMOV_SERIAL}} ## {{WS_SUMUP}}","index_pattern":"wilco__insight-val__*","query_string":{"query":"WS_SUMUP.keyword : * and IS_NFF.keyword : \"Y\" ","language":"kuery"},"id":"fe7d6570-d0aa-11ea-be74-036a9309cf60","color":"rgba(244,78,59,1)","time_field":"@timestamp","icon":"fa-tag","ignore_global_filters":0,"ignore_panel_filters":0},{"fields":"REMOV_PART,REMOV_PART_DESCRIPTION,REMOV_SERIAL,WS_SUMUP,fwot","template":"{{fwot}} - PN: {{REMOV_PART}} ({{REMOV_PART_DESCRIPTION}}) / SN: {{REMOV_SERIAL}} ## {{WS_SUMUP}}","index_pattern":"wilco__insight-val__*","query_string":{"query":"WS_SUMUP.keyword : * and not IS_NFF.keyword : \"Y\" ","language":"kuery"},"id":"ffd67050-d0ab-11ea-be74-036a9309cf60","color":"rgba(115,216,255,1)","time_field":"@timestamp","icon":"fa-tag","ignore_global_filters":0,"ignore_panel_filters":0}],"axis_min":"0","axis_max":"1"},"aggs":[]}""",
"uiStateJSON" : "{}",
"description" : "",
"version" : 1,
"kibanaSavedObjectMeta" : {
"searchSourceJSON" : """{"query":{"query":"","language":"kuery"},"filter":[]}"""
}
},
"type" : "visualization",
"references" : [ ],
"namespace" : "test",
"migrationVersion" : {
"visualization" : "7.4.2"
},
"updated_at" : "2020-07-28T17:40:31.515Z"
}
}
]
}
}