# Scripted field linked to a kibana dashboard with filters

**URL:** https://discuss.elastic.co/t/scripted-field-linked-to-a-kibana-dashboard-with-filters/181395
**Category:** Kibana
**Created:** [May 16, 2019, 12:45pm UTC](https://discuss.elastic.co/t/scripted-field-linked-to-a-kibana-dashboard-with-filters/181395 "2019-05-16T12:45:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Loris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loris/32/45281_2.png) [@Loris](https://discuss.elastic.co/u/Loris)
#### Post date: [May 16, 2019, 12:45pm UTC](https://discuss.elastic.co/t/scripted-field-linked-to-a-kibana-dashboard-with-filters/181395/1 "2019-05-16T12:45:37Z")

</div>

Hi guys,  
I'm trying to create a scripted field (Type: string, Format: URL) linked to a specific kibana dashboard already filtered by

- a CustomvalueID (it works fine)
- a specific timerange calculated by setting its bounds in this way: Customtimestamp-10s \< time \< Customtimestamp+10s

This is what I have done till now:

'../app/kibana#/dashboard/a131e010-01f0-11e9-b64d-e19f9bddbb21?\_a=(query:(language:lucene,query:':"' + doc[''].value + '"'))&\_g=(refreshInterval:(pause:!t,value:0),time:(from:'' + doc['Customtimestamp'].value + '',mode:absolute,to:'' + doc['Customtimestamp'].value + ''))'

I expect to obtain something similar to the following:

'../app/kibana#/dashboard/a131e010-01f0-11e9-b64d-e19f9bddbb21?\_a=(query:(language:lucene,query:':"' + doc[''].value + '"'))&\_g=(refreshInterval:(pause:!t,value:0),time:(from:'' + {{Customtimestamp - 10s}} + '\',mode:absolute,to:\'' + {{Customtimestamp + 10s}}+ ''))'

Is it possible to implement something similar? Can you please help me on it?

Thanks,  
Loris

---

<div class="post-metadata">

### Author: ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)
#### Post date: [May 16, 2019, 2:35pm UTC](https://discuss.elastic.co/t/scripted-field-linked-to-a-kibana-dashboard-with-filters/181395/2 "2019-05-16T14:35:27Z")

</div>

that looks about right, although I think this part needs to be filled in `(language:lucene,query:':"' + doc[''].value + '"'))`

---

<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 13, 2019, 2:35pm UTC](https://discuss.elastic.co/t/scripted-field-linked-to-a-kibana-dashboard-with-filters/181395/3 "2019-06-13T14:35:31Z")

</div>

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