# Custom Queries in Kibana Panels

**URL:** https://discuss.elastic.co/t/custom-queries-in-kibana-panels/17270
**Category:** Elasticsearch
**Created:** [April 29, 2014, 9:08pm UTC](https://discuss.elastic.co/t/custom-queries-in-kibana-panels/17270 "2014-04-29T21:08:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_F](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_f/32/1604_2.png) [@Chris\_F](https://discuss.elastic.co/u/Chris_F)
#### Post date: [April 29, 2014, 9:08pm UTC](https://discuss.elastic.co/t/custom-queries-in-kibana-panels/17270/1 "2014-04-29T21:08:14Z")

</div>

What I'm looking for, is a way to add custom query parameters to some  
panels in Kibana.

For instance, I want to restrict the \_type on my date histogram. My user  
can still do a \* search from the search bar, but I'd like to 'append' the  
\_type:'something' query to one specific panel... in a way that's hard coded  
in the configuration/dashboard.json file, and not something the user can  
override.

Anyone know if that's possible?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2885a9fa-855f-4530-8851-b0a63058bc69%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2885a9fa-855f-4530-8851-b0a63058bc69%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [April 29, 2014, 10:35pm UTC](https://discuss.elastic.co/t/custom-queries-in-kibana-panels/17270/2 "2014-04-29T22:35:27Z")

</div>

If you can get the dashboard to show what you want, you can export the json  
and then put it under $KIBANA\_HOME/app/dashboards and call it via  
http://KIBANA\_URL/index.html#/dashboard/file/$FILE.json.

As these are on the filesystem, they are read only from the users  
perspective.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 30 April 2014 07:08, Chris F. [chris.fauerbach@gmail.com](mailto:chris.fauerbach@gmail.com) wrote:

> What I'm looking for, is a way to add custom query parameters to some  
> panels in Kibana.
> 
> For instance, I want to restrict the \_type on my date histogram. My user  
> can still do a \* search from the search bar, but I'd like to 'append' the  
> \_type:'something' query to one specific panel... in a way that's hard coded  
> in the configuration/dashboard.json file, and not something the user can  
> override.
> 
> Anyone know if that's possible?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/2885a9fa-855f-4530-8851-b0a63058bc69%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2885a9fa-855f-4530-8851-b0a63058bc69%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/2885a9fa-855f-4530-8851-b0a63058bc69%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2885a9fa-855f-4530-8851-b0a63058bc69%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624ZZnhHmVFJp12XUcXxhMgRUp%3DpsZCOe66gC1N-dgfT9xg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624ZZnhHmVFJp12XUcXxhMgRUp%3DpsZCOe66gC1N-dgfT9xg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Rob\_Ottaway](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rob_ottaway/32/1597_2.png) [@Rob\_Ottaway](https://discuss.elastic.co/u/Rob_Ottaway)
#### Post date: [April 29, 2014, 11:51pm UTC](https://discuss.elastic.co/t/custom-queries-in-kibana-panels/17270/3 "2014-04-29T23:51:55Z")

</div>

Use multiple queries. Make one query that is the \_type:"sometype" and pin  
it. Leave the other unpinned so it's easy to hack in any old value.

Then in the panel select the free form query and the pinned one for the  
type.

Here is what it would look like [http://d.pr/i/FXHL](http://d.pr/i/FXHL)

cheers,  
Rob

On Tuesday, April 29, 2014 2:08:14 PM UTC-7, Chris F. wrote:

> What I'm looking for, is a way to add custom query parameters to some  
> panels in Kibana.
> 
> For instance, I want to restrict the \_type on my date histogram. My user  
> can still do a \* search from the search bar, but I'd like to 'append' the  
> \_type:'something' query to one specific panel... in a way that's hard coded  
> in the configuration/dashboard.json file, and not something the user can  
> override.
> 
> Anyone know if that's possible?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b41f3f79-fa58-45ff-b217-22422bbe4f36%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b41f3f79-fa58-45ff-b217-22422bbe4f36%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Rob\_Ottaway](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rob_ottaway/32/1597_2.png) [@Rob\_Ottaway](https://discuss.elastic.co/u/Rob_Ottaway)
#### Post date: [April 29, 2014, 11:53pm UTC](https://discuss.elastic.co/t/custom-queries-in-kibana-panels/17270/4 "2014-04-29T23:53:37Z")

</div>

Adding another shot showing setting up the "selected" queries in the Table  
(Panel) Settings

[http://d.pr/i/JDej](http://d.pr/i/JDej)

cheers,  
Rob

On Tuesday, April 29, 2014 2:08:14 PM UTC-7, Chris F. wrote:

> What I'm looking for, is a way to add custom query parameters to some  
> panels in Kibana.
> 
> For instance, I want to restrict the \_type on my date histogram. My user  
> can still do a \* search from the search bar, but I'd like to 'append' the  
> \_type:'something' query to one specific panel... in a way that's hard coded  
> in the configuration/dashboard.json file, and not something the user can  
> override.
> 
> Anyone know if that's possible?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/88bbcac3-018c-4e1d-84a0-2967fbff3156%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/88bbcac3-018c-4e1d-84a0-2967fbff3156%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:32am UTC](https://discuss.elastic.co/t/custom-queries-in-kibana-panels/17270/5 "2017-07-06T01:32:37Z")

</div>


