# Derivation in Canvas data preview

**URL:** <https://discuss.elastic.co/t/derivation-in-canvas-data-preview/187798>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [June 27, 2019, 9:43am UTC](https://discuss.elastic.co/t/derivation-in-canvas-data-preview/187798 "2019-06-27T09:43:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BennyInc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bennyinc/32/21751_2.png) [@BennyInc](https://discuss.elastic.co/u/BennyInc)\
**Post date:** [June 27, 2019, 9:43am UTC](https://discuss.elastic.co/t/derivation-in-canvas-data-preview/187798/1 "2019-06-27T09:43:47Z")

</div>

I want to display the network traffic of one system on a canvas page, with the raw data coming from metricbeat.  
I have set up a line chart element with a timelion source like this:

```auto
.es(index=metricbeat-*,metric=max:system.network.in.bytes,q=host.name:server1).derivative()

```

This results in a 500 server error however for the data preview (Kibana 6.8).  
The chart itself displays fine, but I think the data preview box is broken?

---

<div class="post-metadata">

**Author:** ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)\
**Post date:** [July 5, 2019, 6:01pm UTC](https://discuss.elastic.co/t/derivation-in-canvas-data-preview/187798/2 "2019-07-05T18:01:56Z")

</div>

Hey @BennyInc -

I just tried reproducing this in `6.8` and `7.0`, but didn't have any luck. In my case I use the sample web logs data that ships with Kibana. This is what my timelion query looks like:

```auto
.es(index=kibana_sample_data_logs,metric=max:bytes,q=host:www.elastic.co).derivative()

```

The chart renders for me as expected, and clicking `Data Preview` also shows the popup with the data table as expected.

Could you provide more details around the error message you are getting, or a screenshot? Does it just say 500?

---

<div class="post-metadata">

**Author:** ![BennyInc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bennyinc/32/21751_2.png) [@BennyInc](https://discuss.elastic.co/u/BennyInc)\
**Post date:** [July 10, 2019, 9:50am UTC](https://discuss.elastic.co/t/derivation-in-canvas-data-preview/187798/3 "2019-07-10T09:50:18Z")

</div>

The exact message is this:

> Expression failed with the message:
> 
> [timelion] \> Request failed with status code 500

---

<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:** [August 7, 2019, 9:50am UTC](https://discuss.elastic.co/t/derivation-in-canvas-data-preview/187798/4 "2019-08-07T09:50:18Z")

</div>

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