# Plugin to get selected columns from Saved search Dashboard panel

**URL:** <https://discuss.elastic.co/t/plugin-to-get-selected-columns-from-saved-search-dashboard-panel/221566>\
**Category:** Kibana\
**Created:** [March 1, 2020, 12:22pm UTC](https://discuss.elastic.co/t/plugin-to-get-selected-columns-from-saved-search-dashboard-panel/221566 "2020-03-01T12:22:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranitg](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@ranitg](https://discuss.elastic.co/u/ranitg)\
**Post date:** [March 1, 2020, 12:22pm UTC](https://discuss.elastic.co/t/plugin-to-get-selected-columns-from-saved-search-dashboard-panel/221566/1 "2020-03-01T12:22:17Z")

</div>

Hello,  
I wanted to know if there is a way to get the selected columns from a Saved search Dashboard panel. How is this done using a plugin? Can someone share an example code?  
Using Kibana 7.5.

Thanks

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 17, 2020, 6:14am UTC](https://discuss.elastic.co/t/plugin-to-get-selected-columns-from-saved-search-dashboard-panel/221566/2 "2020-03-17T06:14:34Z")

</div>

You could certainly try to create a scripted field to get the selected columns . It can be hard to get scripted fields working correctly. So my advice is to work incrementally towards your solution. You query scripted fields with the [Kibana query language](https://www.elastic.co/guide/en/kibana/current/kuery-query.html), and can filter them using the filter bar.

[https://www.elastic.co/guide/en/kibana/current/scripted-fields.html](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html)

The scripted fields are based on the Java implementation of Regex, which is kinda hard to debug. Another way, I can suggest is that you can try to achieve the same result by using Java string manipulation functions.

hope it helps  
Rashmi

---

<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:** [April 14, 2020, 6:14am UTC](https://discuss.elastic.co/t/plugin-to-get-selected-columns-from-saved-search-dashboard-panel/221566/3 "2020-04-14T06:14:36Z")

</div>

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