Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedd custom script into kibana. #488

Closed
anhhuyla opened this issue Sep 13, 2013 · 4 comments
Closed

Embedd custom script into kibana. #488

anhhuyla opened this issue Sep 13, 2013 · 4 comments

Comments

@anhhuyla
Copy link

Hi,

I use kibana3 as GUI web-frontend for my users, and it works very well.

Now I have some problems :

  1. I'd like to add some < script > tag into to text field panel ( to show Google Adsense code for examples ) but the HTML mode strips off scripts tag. I know that it is rendered by sanitize code. The question is : is there any way to bypass or exclude some custom script code in kibana (bypass sanitize) ?
  2. I add some custom < script > in the index.html file but they do not work (Adf.ly full page script for example - it will append some text before < a href http tag on mouse-over event ). I guest the LAB.js has block this. The question is : is there any way to run additional custom script in kibana ?

Look 4ward to ur rep ! Regards.

@

@spalger
Copy link
Contributor

spalger commented Sep 13, 2013

I think you might benefit from the new JavaScript dashboard configs, from there you could insert your google analytics script. Check out "Method 3" in this comment for details.

Regarding question 2, the issue you're experiencing could possibly be related to how/when that the <a> tags are rendered. Kibana puts those links on the page a while after the page has already loaded, so adf.ly might not be seeing them when it loads. Didn't see docs of any sort on their site, or I'd try to confirm.

@anhhuyla
Copy link
Author

Thanks Spencer,

I've tested the method 2 - Query URL parameters - by your suggestion : #168 (comment)

But it didn't work. Are you sure it works with K3 milestone-3 ? Here is the screenshot :

https://lh5.googleusercontent.com/-7WATe9jZUhQ/UjLMuFZ27RI/AAAAAAAANUc/volTEKwtFtI/s800/kibana3.jpeg

?query=nginx

Any comment ?

@.

@rashidkpc
Copy link
Contributor

Scripted dashboards are a milestone 4 feature. They are available currently in master.

@anhhuyla
Copy link
Author

It works !

http://www.rpmstuff.org/#/dashboard?s=kernel-devel

Thank you for creating greate Kibana ! :)

harper-carroll pushed a commit to harper-carroll/kibana that referenced this issue Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants