I have a visualization in a elasticseacrch node, I want this visualization in another elasticsearch node with same data. visualization in json format:

I have a visualization in a elasticseacrch node, I want this visualization in another elasticsearch node with same data.

visualization in json format:

{
"type": "visualization",
"visualization": {
  "title": "Monthly Product Cost",
  "visState": "{\"title\":\"Monthly Product Cost\",\"type\":\"table\",\"params\":{\"perPage\":10,\"showMeticsAtAllLevels\":false,\"showPartialRows\":false,\"showTotal\":false,\"sort\":{\"columnIndex\":null,\"direction\":null},\"totalFunc\":\"sum\",\"type\":\"table\"},\"aggs\":[{\"id\":\"2\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"bucket\",\"params\":{\"field\":\"ProductName.keyword\",\"size\":30,\"order\":\"desc\",\"orderBy\":\"_term\",\"customLabel\":\"AWS Product\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"split\",\"params\":{\"field\":\"UsageEndDate\",\"interval\":\"M\",\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\".\",\"row\":false}},{\"id\":\"4\",\"enabled\":true,\"type\":\"sum\",\"schema\":\"metric\",\"params\":{\"field\":\"BlendedCost\",\"customLabel\":\"Cost\"}}],\"listeners\":{}}",
  "uiStateJSON": "{\"vis\":{\"params\":{\"sort\":{\"columnIndex\":1,\"direction\":\"desc\"}}}}",
  "description": "",
  "version": 1,
  "kibanaSavedObjectMeta": {
    "searchSourceJSON": "{\"index\":\"AWJCEteMhWmRDyJIYNEB\",\"query\":{\"match_all\":{}},\"filter\":[]}"
  }
}

}

I think I have to change this part:
"searchSourceJSON": "{"index":"AWJCEteMhWmRDyJIYNEB","query":{"match_all":{}},"filter":[]}"

Thanks in advance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.