# Using Histogram Facet or Its Curl Response in Kibana

**URL:** https://discuss.elastic.co/t/using-histogram-facet-or-its-curl-response-in-kibana/13739
**Category:** Elasticsearch
**Created:** [September 24, 2013, 3:52pm UTC](https://discuss.elastic.co/t/using-histogram-facet-or-its-curl-response-in-kibana/13739 "2013-09-24T15:52:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ldavidson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ldavidson/32/2086_2.png) [@ldavidson](https://discuss.elastic.co/u/ldavidson)
#### Post date: [September 24, 2013, 3:52pm UTC](https://discuss.elastic.co/t/using-histogram-facet-or-its-curl-response-in-kibana/13739/1 "2013-09-24T15:52:20Z")

</div>

Is it possible to use a manually created histogram facet (or the results of  
its curl request) like this one in a Kibana dashboard:

{  
"query" : {  
"match\_all" : {}  
},  
"facets" : {  
"histo1" : {  
"histogram" : {  
"key\_script" : "doc['date'].date.minuteOfHour \* factor1",  
"value\_script" : "doc['num1'].value + factor2",  
"params" : {  
"factor1" : 2,  
"factor2" : 3  
}  
}  
}  
}  
}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Rashid\_Khan1](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@Rashid\_Khan1](https://discuss.elastic.co/u/Rashid_Khan1)
#### Post date: [October 3, 2013, 4:11pm UTC](https://discuss.elastic.co/t/using-histogram-facet-or-its-curl-response-in-kibana/13739/2 "2013-10-03T16:11:38Z")

</div>

Unfortunately it is not currently possible to use scripting in Kibana.

On Tuesday, September 24, 2013 8:52:20 AM UTC-7, ldavidson wrote:

> Is it possible to use a manually created histogram facet (or the results  
> of its curl request) like this one in a Kibana dashboard:
> 
> {  
> "query" : {  
> "match\_all" : {}  
> },  
> "facets" : {  
> "histo1" : {  
> "histogram" : {  
> "key\_script" : "doc['date'].date.minuteOfHour \* factor1",  
> "value\_script" : "doc['num1'].value + factor2",  
> "params" : {  
> "factor1" : 2,  
> "factor2" : 3  
> }  
> }  
> }  
> }  
> }

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:13am UTC](https://discuss.elastic.co/t/using-histogram-facet-or-its-curl-response-in-kibana/13739/3 "2017-07-06T02:13:55Z")

</div>


