Kibana Iframe Communicator


(Mehdi Chilla) #1

Hello,

I'm start on kibana and javascript and i search how to work the plugin Kibana-Iframe-Communicator .
I try to send to my dashboard different filters using windows.postmessage but I do not understand how to format my request
Is there anyone who already use this plugin?

thank you in advance


Kibana Iframe communicator: What is APP-STATE?
Get applied filters programmatically
(Brandon Kobel) #2

@Mehdi_Chilla I don't have any experience using this plugin, but from looking at the README.md in that github repo, it looks like you might be able to do so using:

myIframe.contentWindow.postMessage('searchRequest###' + this.iframeFinalUrl, '*'); this.iframeFinalUrl is your kibana URI containing the complete dashboard data such as: http://{KIBANA-HOST}/app/kibana#/dashboard/{OPTIONAL-DASHBOARD-NAME}?embed&_g={GLOBAL-STATE-DATA}&_a={APP-STATE-DATA}

You might have better success posting in the GitHub issues for this repo.


(Mehdi Chilla) #3

Hello,
Thank you for your answer .
I managed to make it work properly
I will watch if I can close this post

Mehdi


(Brandon Kobel) #4

@Mehdi_Chilla I'm glad to hear you were able to figure it out!


(system) #5

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