# How to create custom search fields in Discover tab

**URL:** <https://discuss.elastic.co/t/how-to-create-custom-search-fields-in-discover-tab/2672>\
**Category:** Kibana\
**Created:** [June 15, 2015, 8:20am UTC](https://discuss.elastic.co/t/how-to-create-custom-search-fields-in-discover-tab/2672 "2015-06-15T08:20:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![taus\_alti](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@taus\_alti](https://discuss.elastic.co/u/taus_alti)\
**Post date:** [June 15, 2015, 8:20am UTC](https://discuss.elastic.co/t/how-to-create-custom-search-fields-in-discover-tab/2672/1 "2015-06-15T08:20:00Z")

</div>

How to create custom search fields in Discover tab.

I am using MongoDB river to push documents(application logs) from MongoDB to ES. I would intend to use Kibana as the front end tool.

The default search that comes along with Kibana has only one input textbox. I have to provide queries like "level:INFO project:PROJ1, class:com.abc.Test".

Instead of writing this query I would like to customize the Discover tab to show these as separate input fields where the user can select/enter values.

Can somebody please suggest me the steps that I should follow to customize the search options in Discover tab.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 15, 2015, 11:00pm UTC](https://discuss.elastic.co/t/how-to-create-custom-search-fields-in-discover-tab/2672/2 "2015-06-15T23:00:33Z")

</div>

Pinned filters in KB 4.1 should alleviate some of this problem for you.

---

<div class="post-metadata">

**Author:** ![taus\_alti](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@taus\_alti](https://discuss.elastic.co/u/taus_alti)\
**Post date:** [June 16, 2015, 10:17am UTC](https://discuss.elastic.co/t/how-to-create-custom-search-fields-in-discover-tab/2672/3 "2015-06-16T10:17:32Z")

</div>

> [@warkolm](#):
>
> Pinned filters

Hi Mark,  
With the pinned filters predefined searches can be performed. Like levelLERROR, but if the user now wants to search for level:DEBUG then he has to create another pinned filter.

I wanted to customize the search itself. Like providing separate input fields for one particular index in ES. This way the user will have more control on what to search for.

---

<div class="post-metadata">

**Author:** ![bkandanoor](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bkandanoor](https://discuss.elastic.co/u/bkandanoor)\
**Post date:** [June 24, 2015, 11:11pm UTC](https://discuss.elastic.co/t/how-to-create-custom-search-fields-in-discover-tab/2672/4 "2015-06-24T23:11:16Z")

</div>

even i am looking for the same solution..any leads will be helpful

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [June 26, 2015, 1:11pm UTC](https://discuss.elastic.co/t/how-to-create-custom-search-fields-in-discover-tab/2672/5 "2015-06-26T13:11:14Z")

</div>

I understand your use case, and it's a valid ask. Unfortunately, there isn't currently a good way to do that in Kibana 4 at this time (aside from custom development, that is).

The combination of [pinned filters](https://github.com/elastic/kibana/issues/2349) and [editable filters](https://github.com/elastic/kibana/issues/1583) coming in a later release should make this possible, though. You can follow our progress in Github.

---

<div class="post-metadata">

**Author:** ![taus\_alti](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@taus\_alti](https://discuss.elastic.co/u/taus_alti)\
**Post date:** [June 30, 2015, 3:50am UTC](https://discuss.elastic.co/t/how-to-create-custom-search-fields-in-discover-tab/2672/6 "2015-06-30T03:50:12Z")

</div>

Hi Tanya,

Thanks for the reply.  
It is good to know that this feature would be a part of Kibana 4 in a later release.  
Till this time, any information of custom development of this feature is highly appreciated.

Thanks,  
Tauseef.

---

<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, 2:17pm UTC](https://discuss.elastic.co/t/how-to-create-custom-search-fields-in-discover-tab/2672/7 "2017-07-06T14:17:19Z")

</div>


