# Help... Query JSON Input filter

**URL:** <https://discuss.elastic.co/t/help-query-json-input-filter/38242>\
**Category:** Kibana\
**Created:** [January 1, 2016, 1:25pm UTC](https://discuss.elastic.co/t/help-query-json-input-filter/38242 "2016-01-01T13:25:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Libfy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/libfy/32/6929_2.png) [@Libfy](https://discuss.elastic.co/u/Libfy)\
**Post date:** [January 1, 2016, 1:25pm UTC](https://discuss.elastic.co/t/help-query-json-input-filter/38242/1 "2016-01-01T13:25:26Z")

</div>

Hi all,

In a Tile Map visualization, I want to exclude a specific ip from the graph.  
I try to create a JSON Input filter:

{  
"size": 0,  
"query": {  
"filtered": {  
"query": {  
"query\_string": {  
"query": "",  
"analyze\_wildcard": true  
}  
},  
"filter": {  
"bool": {  
"must\_not": [  
{  
"term": {  
"geoip.ip": "x.x.x.x"  
}  
}  
]  
}  
}  
}  
}  
}

But I have an error:  
Request to Elasticsearch failed: {"error":{"root\_cause":[{"type":"search\_parse\_exception","reason":"Unexpected token VALUE\_BOOLEAN in [2].","line":1,"col":364}],"type":"search\_phase\_execution\_exception","reason":"all shards failed","phase":"query","grouped":true,"failed\_shards":[{"shard":0,"index":"logstash-201601011200","node":"GCR-klVjTISVdBELonhgUQ","reason":{"type":"search\_parse\_exception","reason":"Unexpected token VALUE\_BOOLEAN in [2].","line":1,"col":364}}]}}

I don't know how to solve this problem.

Many thanks for your help.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 2, 2016, 9:47pm UTC](https://discuss.elastic.co/t/help-query-json-input-filter/38242/2 "2016-01-02T21:47:42Z")

</div>

A boolean query requires either true or false, so that is not valid.

What version of things are you on?

---

<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:** [July 6, 2017, 2:05pm UTC](https://discuss.elastic.co/t/help-query-json-input-filter/38242/3 "2017-07-06T14:05:45Z")

</div>


