Can kibana filter by parameter from Javascript?

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?

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

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