# \[Kibana 4\] Add threshold line to visualization

**URL:** <https://discuss.elastic.co/t/kibana-4-add-threshold-line-to-visualization/23402>\
**Category:** Elasticsearch\
**Created:** [April 26, 2015, 6:37pm UTC](https://discuss.elastic.co/t/kibana-4-add-threshold-line-to-visualization/23402 "2015-04-26T18:37:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yarden\_Bar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yarden_bar/32/736_2.png) [@Yarden\_Bar](https://discuss.elastic.co/u/Yarden_Bar)\
**Post date:** [April 26, 2015, 6:37pm UTC](https://discuss.elastic.co/t/kibana-4-add-threshold-line-to-visualization/23402/1 "2015-04-26T18:37:59Z")

</div>

Hi all,  
I'm sure I'm not the first one with this idea, but couldn't find anything  
on the net which resembles a solution.

My goal is to have a horizontal line expressing a threshold level.  
The scenario in questions is a Kibana 4 visualization of NginX request  
duration average. I want to set a horizontal line on the graph, making it  
easy to point when the threshold is crossed.

One Idea is to add the threshold level as a field in each document and  
display the average per same time slice of the graph.

Any other ideas?

Thanks,  
Yarden

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2286424f-61a6-44f6-9e3f-316a29a0ebbc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2286424f-61a6-44f6-9e3f-316a29a0ebbc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![P\_lva](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@P\_lva](https://discuss.elastic.co/u/P_lva)\
**Post date:** [April 26, 2015, 6:57pm UTC](https://discuss.elastic.co/t/kibana-4-add-threshold-line-to-visualization/23402/2 "2015-04-26T18:57:45Z")

</div>

Not an exact answer but you could use a filter and stacked lines. Have one color for above threshold and a different color and under threshold.

Thanks  
Ruvi

-----Original Message-----  
From: "Yarden Bar" [ayash.jorden@gmail.com](mailto:ayash.jorden@gmail.com)  
Sent: ‎4/‎26/‎2015 2:38 PM  
To: "elasticsearch@googlegroups.com" [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
Subject: [Kibana 4] Add threshold line to visualization

Hi all,  
I'm sure I'm not the first one with this idea, but couldn't find anything on the net which resembles a solution.

My goal is to have a horizontal line expressing a threshold level.  
The scenario in questions is a Kibana 4 visualization of NginX request duration average. I want to set a horizontal line on the graph, making it easy to point when the threshold is crossed.

One Idea is to add the threshold level as a field in each document and display the average per same time slice of the graph.

Any other ideas?

Thanks,  
Yarden

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2286424f-61a6-44f6-9e3f-316a29a0ebbc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2286424f-61a6-44f6-9e3f-316a29a0ebbc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/553d353d.8e23340a.7afb.790a%40mx.google.com](https://groups.google.com/d/msgid/elasticsearch/553d353d.8e23340a.7afb.790a%40mx.google.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Yarden\_Bar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yarden_bar/32/736_2.png) [@Yarden\_Bar](https://discuss.elastic.co/u/Yarden_Bar)\
**Post date:** [April 27, 2015, 5:59am UTC](https://discuss.elastic.co/t/kibana-4-add-threshold-line-to-visualization/23402/3 "2015-04-27T05:59:50Z")

</div>

Thanks Ruvi, that works for now.

On Sunday, April 26, 2015 at 9:58:16 PM UTC+3, P lva wrote:

> Not an exact answer but you could use a filter and stacked lines. Have one  
> color for above threshold and a different color and under threshold.
> 
> ## Thanks Ruvi
> 
> From: Yarden Bar \<javascript:\>  
> Sent: ‎4/‎26/‎2015 2:38 PM  
> To: [elasti...@googlegroups.com](mailto:elasti...@googlegroups.com) \<javascript:\>  
> Subject: [Kibana 4] Add threshold line to visualization
> 
> Hi all,  
> I'm sure I'm not the first one with this idea, but couldn't find anything  
> on the net which resembles a solution.
> 
> My goal is to have a horizontal line expressing a threshold level.  
> The scenario in questions is a Kibana 4 visualization of NginX request  
> duration average. I want to set a horizontal line on the graph, making it  
> easy to point when the threshold is crossed.
> 
> One Idea is to add the threshold level as a field in each document and  
> display the average per same time slice of the graph.
> 
> Any other ideas?
> 
> Thanks,  
> Yarden
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/2286424f-61a6-44f6-9e3f-316a29a0ebbc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2286424f-61a6-44f6-9e3f-316a29a0ebbc%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/2286424f-61a6-44f6-9e3f-316a29a0ebbc%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2286424f-61a6-44f6-9e3f-316a29a0ebbc%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/19c1f849-385f-4c9d-93d9-3a96e565c55f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/19c1f849-385f-4c9d-93d9-3a96e565c55f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Kartavya](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@Kartavya](https://discuss.elastic.co/u/Kartavya)\
**Post date:** [April 27, 2015, 8:48am UTC](https://discuss.elastic.co/t/kibana-4-add-threshold-line-to-visualization/23402/4 "2015-04-27T08:48:44Z")

</div>

Hi,

You can have a scripted field added in Kibana and assign it a threshold value.  
I hope it will help.

Sent from my iPhone

On 27-Apr-2015, at 11:29 AM, Yarden Bar [ayash.jorden@gmail.com](mailto:ayash.jorden@gmail.com) wrote:

> Thanks Ruvi, that works for now.
> 
> On Sunday, April 26, 2015 at 9:58:16 PM UTC+3, P lva wrote:
> 
> > Not an exact answer but you could use a filter and stacked lines. Have one color for above threshold and a different color and under threshold.
> > 
> > Thanks  
> > Ruvi  
> > From: Yarden Bar  
> > Sent: ‎4/‎26/‎2015 2:38 PM  
> > To: [elasti...@googlegroups.com](mailto:elasti...@googlegroups.com)  
> > Subject: [Kibana 4] Add threshold line to visualization
> > 
> > Hi all,  
> > I'm sure I'm not the first one with this idea, but couldn't find anything on the net which resembles a solution.
> > 
> > My goal is to have a horizontal line expressing a threshold level.  
> > The scenario in questions is a Kibana 4 visualization of NginX request duration average. I want to set a horizontal line on the graph, making it easy to point when the threshold is crossed.
> > 
> > One Idea is to add the threshold level as a field in each document and display the average per same time slice of the graph.
> > 
> > Any other ideas?
> > 
> > ## Thanks, Yarden
> > 
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2286424f-61a6-44f6-9e3f-316a29a0ebbc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2286424f-61a6-44f6-9e3f-316a29a0ebbc%40googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/19c1f849-385f-4c9d-93d9-3a96e565c55f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/19c1f849-385f-4c9d-93d9-3a96e565c55f%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/23CBE118-EC09-48EB-B5E0-D115FAFBB637%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/23CBE118-EC09-48EB-B5E0-D115FAFBB637%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:17am UTC](https://discuss.elastic.co/t/kibana-4-add-threshold-line-to-visualization/23402/5 "2017-07-06T00:17:41Z")

</div>


