# Kibana 6.0.0 Json input not working

**URL:** https://discuss.elastic.co/t/kibana-6-0-0-json-input-not-working/112619
**Category:** Kibana
**Created:** [December 20, 2017, 11:11am UTC](https://discuss.elastic.co/t/kibana-6-0-0-json-input-not-working/112619 "2017-12-20T11:11:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gasmi](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gasmi](https://discuss.elastic.co/u/gasmi)
#### Post date: [December 20, 2017, 11:11am UTC](https://discuss.elastic.co/t/kibana-6-0-0-json-input-not-working/112619/1 "2017-12-20T11:11:50Z")

</div>

I want to add a line visualization that contains the number of Errors graph.

I am trying to use the aggregation "count" with a Json input to count only errors. But this is not working.

```
{
  "query": {
    "match": {
      "level.keyword": {
        "query": "ERROR",
        "type": "phrase"
      }
    }
  }
}

```

I can't link a filter to my graph because I have in the same graph other metrics.

---

<div class="post-metadata">

### Author: ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)
#### Post date: [December 20, 2017, 5:18pm UTC](https://discuss.elastic.co/t/kibana-6-0-0-json-input-not-working/112619/2 "2017-12-20T17:18:19Z")

</div>

`JSON Input` allows for manually setting aggregation parameters that do not have GUI inputs. None of the aggregations support `query` as a parameter so you can not filter aggregation results in this way.

Try using the timelion visualization. That visualization allows for specifying specific queries per metric. For example, the following expression displays a unique count metric for two filters  
`.es(index=logstash-*,q='machine.os.raw:ios',metric=count), .es(index=logstash-*,q='machine.os.raw:osx',metric=count)`

---

<div class="post-metadata">

### Author: ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)
#### Post date: [December 20, 2017, 5:48pm UTC](https://discuss.elastic.co/t/kibana-6-0-0-json-input-not-working/112619/3 "2017-12-20T17:48:26Z")

</div>

You could also use the `filters` aggregation to split the series and create a seperate metric per filter.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/b/2b286cf18ded71cdcfa61c907929e0f0b47b74c4.png)

---

<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: [January 17, 2018, 5:49pm UTC](https://discuss.elastic.co/t/kibana-6-0-0-json-input-not-working/112619/4 "2018-01-17T17:49:01Z")

</div>

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