# Unable to create visualization fitler

**URL:** <https://discuss.elastic.co/t/unable-to-create-visualization-fitler/116344>\
**Category:** Kibana\
**Created:** [January 20, 2018, 5:10pm UTC](https://discuss.elastic.co/t/unable-to-create-visualization-fitler/116344 "2018-01-20T17:10:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashokkrishna99\_Vemur](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@ashokkrishna99\_Vemur](https://discuss.elastic.co/u/ashokkrishna99_Vemur)\
**Post date:** [January 20, 2018, 5:10pm UTC](https://discuss.elastic.co/t/unable-to-create-visualization-fitler/116344/1 "2018-01-20T17:10:52Z")

</div>

When i'm trying to create the visualization filter.

`curl -XPOST 'http://localhost:9200/.kibana/visualization/http-500' -d '{"title": "http-500","visState": "{\"title\":\"http-500\",\"type\":\"metric\",\"params\":{\"addTooltip\":true,\"addLegend\":false,\"type\":\"gauge\",\"gauge\":{\"verticalSplit\":false,\"autoExtend\":false,\"percentageMode\":false,\"gaugeType\":\"Metric\",\"gaugeStyle\":\"Full\",\"backStyle\":\"Full\",\"orientation\":\"vertical\",\"colorSchema\":\"Green to Red\",\"gaugeColorMode\":\"None\",\"useRange\":false,\"colorsRange\":[{\"from\":0,\"to\":100}],\"invertColors\":false,\"labels\":{\"show\":true,\"color\":\"black\"},\"scale\":{\"show\":false,\"labels\":false,\"color\":\"#333\",\"width\":2},\"type\":\"simple\",\"style\":{\"fontSize\":60,\"bgColor\":false,\"labelColor\":false,\"subText\":\"\"}}},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}}],\"listeners\":{}}","uiStateJSON": "{\"vis\":{\"defaultColors\":{\"0 - 100\":\"rgb(0,104,55)\"}}}", "description": "", "savedSearchId": "http-response-500", "version": 1, kibanaSavedObjectMeta": {"searchSourceJSON": "{\"filter\":[]}"}}'`

I got this error what is the issue?. Can anyone help me how to resolve this.

`{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse"}],"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"json_parse_exception","reason":"Unexpected character ('k' (code 107)): was expecting double-quote to start field name\n at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@4f091466; line: 1, column: 974]"}},"status":400}`

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [January 22, 2018, 8:23pm UTC](https://discuss.elastic.co/t/unable-to-create-visualization-fitler/116344/2 "2018-01-22T20:23:58Z")

</div>

@ashokkrishna99_Vemur you're missing a `"` before `kibanaSavedObjectMeta`, it should be `"kibanaSavedObjectMeta": {"searchSourceJSON": "{\"filter\":[]}"}}'`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 19, 2018, 8:24pm UTC](https://discuss.elastic.co/t/unable-to-create-visualization-fitler/116344/3 "2018-02-19T20:24:23Z")

</div>

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