# How to create Multiple trend chart in single line graph using Custom Field in Y-axis

**URL:** <https://discuss.elastic.co/t/how-to-create-multiple-trend-chart-in-single-line-graph-using-custom-field-in-y-axis/85457>\
**Category:** Kibana\
**Created:** [May 11, 2017, 5:29pm UTC](https://discuss.elastic.co/t/how-to-create-multiple-trend-chart-in-single-line-graph-using-custom-field-in-y-axis/85457 "2017-05-11T17:29:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arun\_prasath1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arun_prasath1/32/49539_2.png) [@arun\_prasath1](https://discuss.elastic.co/u/arun_prasath1)\
**Post date:** [May 11, 2017, 5:29pm UTC](https://discuss.elastic.co/t/how-to-create-multiple-trend-chart-in-single-line-graph-using-custom-field-in-y-axis/85457/1 "2017-05-11T17:29:55Z")

</div>

Hi I have a requirement to show the status of my Apache instances from the http\_status code from server. I have multiple Apache instance - for each http instance I need the trend graph in a single Line chart using time-interval in x-axis and y-axis should have the apache error codes like 200, 302, 500, 502 for all the apache instances.  
In the y-axis, Is there a way to add the Custom field as aggregation so that I can use date-histogram in X-axis and in split chart, I can add the apache instance in split chart Rows for trend graph inside the Line Graph.  
The Y-axis has only default aggregations by which I can not get the error codes in the y-axis. Could anyone has done this before. please suggest and help.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [May 11, 2017, 8:56pm UTC](https://discuss.elastic.co/t/how-to-create-multiple-trend-chart-in-single-line-graph-using-custom-field-in-y-axis/85457/2 "2017-05-11T20:56:00Z")

</div>

> [@arun\_prasath1](#):
>
> Is there a way to add the Custom field as aggregation

I'm not sure what you mean here. Is there any way you could sketch the graph you are hoping for an upload it?

---

<div class="post-metadata">

**Author:** ![arun\_prasath1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arun_prasath1/32/49539_2.png) [@arun\_prasath1](https://discuss.elastic.co/u/arun_prasath1)\
**Post date:** [May 15, 2017, 10:18am UTC](https://discuss.elastic.co/t/how-to-create-multiple-trend-chart-in-single-line-graph-using-custom-field-in-y-axis/85457/3 "2017-05-15T10:18:13Z")

</div>

Lukas @ I need a graph to see the url status like attached. ![](https://us1.discourse-cdn.com/elastic/original/3X/3/f/3fe587fdc6adc0f1eae77baba72d1b5092922b6e.PNG)  
I found this can be done using heartbeat. Is there a way to plot a graph without using heartbeat.

---

<div class="post-metadata">

**Author:** ![arun\_prasath1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arun_prasath1/32/49539_2.png) [@arun\_prasath1](https://discuss.elastic.co/u/arun_prasath1)\
**Post date:** [May 17, 2017, 7:28pm UTC](https://discuss.elastic.co/t/how-to-create-multiple-trend-chart-in-single-line-graph-using-custom-field-in-y-axis/85457/4 "2017-05-17T19:28:04Z")

</div>

Anyone knew how to get this graph? Please help.

---

<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:** [June 14, 2017, 7:28pm UTC](https://discuss.elastic.co/t/how-to-create-multiple-trend-chart-in-single-line-graph-using-custom-field-in-y-axis/85457/5 "2017-06-14T19:28:36Z")

</div>

Closed on June 14, 2017, 7:28pm UTC

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