# Can kibana filter by parameter from Javascript?

**URL:** <https://discuss.elastic.co/t/can-kibana-filter-by-parameter-from-javascript/241828>\
**Category:** Kibana\
**Created:** [July 20, 2020, 3:34am UTC](https://discuss.elastic.co/t/can-kibana-filter-by-parameter-from-javascript/241828 "2020-07-20T03:34:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natchanan\_Jeawheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natchanan_jeawheng/32/72021_2.png) [@Natchanan\_Jeawheng](https://discuss.elastic.co/u/Natchanan_Jeawheng)\
**Post date:** [July 20, 2020, 3:34am UTC](https://discuss.elastic.co/t/can-kibana-filter-by-parameter-from-javascript/241828/1 "2020-07-20T03:34:08Z")

</div>

Now i have creating a html website and i have embeded kibana iframe . I want to recieve parameter from website to filtering data to visualize in iframe thta I have embeded , Can't i do it?

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [July 22, 2020, 5:34am UTC](https://discuss.elastic.co/t/can-kibana-filter-by-parameter-from-javascript/241828/2 "2020-07-22T05:34:53Z")

</div>

Hi

given this is your url of your iframecontaining a Kibana dashboard with a filter:

`https://kibanaURK/app/dashboards#/view/7adfa750-4c81-11e8-b3d7-01146121b73d?embed=true&_g=(filters:!(),refreshInterval:(pause:!f,value:900000),time:(from:now-24h,to:now))&_a=(description:'Analyze%20mock%20flight%20data%20for%20ES-Air,%20Logstash%20Airways,%20Kibana%20Airlines%20and%20JetBeats',filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:d3d7af60-4c81-11e8-b3d7-01146121b73d,key:Carrier,negate:!f,params:(query:'Logstash%20Airways'),type:phrase),query:(match_phrase:(Carrier:'Logstash%20Airways')))),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:''),timeRestore:!t,title:'%5BFlights%5D%20Global%20Flight%20Dashboard',viewMode:view)&hide-filter-bar=true`

there's an existing filter part of it:  
`filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:d3d7af60-4c81-11e8-b3d7-01146121b73d,key:Carrier,negate:!f,params:(query:'Logstash%20Airways'),type:phrase),query:(match_phrase:(Carrier:'Logstash%20Airways'))))`  
It's filtering for "Logstash Airways", but of course you can filter for something different, and that's how you can customize a given filter, by changing the url of the iframe you're embedding.

Best,  
Matthias

---

<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 19, 2020, 5:35am UTC](https://discuss.elastic.co/t/can-kibana-filter-by-parameter-from-javascript/241828/3 "2020-08-19T05:35:04Z")

</div>

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