# Kibana JSON input

**URL:** <https://discuss.elastic.co/t/kibana-json-input/65952>\
**Category:** Kibana\
**Created:** [November 14, 2016, 9:08am UTC](https://discuss.elastic.co/t/kibana-json-input/65952 "2016-11-14T09:08:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohana01](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mohana01](https://discuss.elastic.co/u/Mohana01)\
**Post date:** [November 14, 2016, 9:08am UTC](https://discuss.elastic.co/t/kibana-json-input/65952/1 "2016-11-14T09:08:39Z")

</div>

Hi All,  
I want to know the usage/options which we can give in advanced input section.i tried with many sites and the following code is working in that iput section.{size :0 }  
Please help me more on this.

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [November 14, 2016, 10:28am UTC](https://discuss.elastic.co/t/kibana-json-input/65952/2 "2016-11-14T10:28:00Z")

</div>

The JSON input you provide is merged with the aggregation parameters from Kibana. (thats why you have that field on each aggregation) You need to lookup the [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html) for the kind of aggregation you're using to figure what you can do. For instance, for the Significant terms aggregation, it can be useful to modify the background\_filter property to make the significant terms relate to only a subset of your index.  
Or maybe you want to pass shard\_size in a terms agg, or increase the precision\_threshold in a cardinality agg.

We can also pass a script as an advanced parameter to some aggregations, and for example divide \_value by 1000.  
If you select average as your metric type (instead of count) you can for example try with this script:

```auto
{
  "script" : 
    {
    "lang": "painless",
    "inline": "_value / params.correction",
    "params" : {
      "correction" : 1000
    }
  }
}

```

make sure you provide valid JSON.

---

<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:** [December 12, 2016, 10:28am UTC](https://discuss.elastic.co/t/kibana-json-input/65952/3 "2016-12-12T10:28:11Z")

</div>

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