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

Getting ES host name in scripted dashboard #1424

Closed
martinhynar opened this issue Aug 11, 2014 · 1 comment
Closed

Getting ES host name in scripted dashboard #1424

martinhynar opened this issue Aug 11, 2014 · 1 comment

Comments

@martinhynar
Copy link

I am about to code scripted Kibana dashboard that generates bunch of links to other dedicated dashboards based on result from ES query.

E.g. some task is executed on several hosts (variable number) and there is document in ES that tells on which host runs what part of the task. I want a dashboard that will query ES and then generate link for each host that is in that document.

I already have scripted dashboard that does exactly what I want, but I have there hardwired ES host name. This piece of information is in config.js, but I cant access it in my dashboard.js file. I searched the codes and found that the relevant evaluation of the scripted dashboard is the following:

var _f = new Function('ARGS','kbn','_','moment','window','document','angular','require','define','$','jQuery',response);
return _f($routeParams,kbn,_,moment);

None of the passed arguments will give access to config. Having at least angular will allow to access it... Any chance having such option in the future?

@spalger
Copy link
Contributor

spalger commented Oct 7, 2014

Hey @martinhynar, I'm going to close this since this doesn't really apply to the new version of Kibana. Thanks!

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

2 participants