using kibana 5.5.1. The aim is to make a variable through kibana.yml whose edits can be implemented without deleting and re-compiling the optimization folder. Below is the index.js
export default function (kibana) {
return new kibana.Plugin({
id:'my_team_plugin',
uiExports: {
docViews: ['plugins/my_team_plugin/team_plugin']
Using this it seems to recognize this line in kibana.yml
my_team_plugin.tx: xxxxxxxxxxx
after the Joi has been configured how can I call the variable in js files so that edits made to the config can be implemented without re-optimization? require('./../index.js') causes an error.
No need to include index.js to access configurations. On the server, configurations are available on the server object. For example, in the APM application, configurations are accessed on the server via server.config()
To access configurations on the client, you must first put them into injectDefaultVars. Then, in the UI code you can access the variables via chrome.getInjected
Looks like your index.js file is not quit right. You do not have a comma after docViews. What version of kibana are you using? What is the error message?
looks like the cause of the error was that the joi string and the config.get variable were differe (which was a typo. now corrected). But chrome injector likely wont work with my environment. is there another way to load it as a variable in a way that will allow edits to take place without re-optimizing?
This is a great thread where i got more information. I am bookmarking this website so that i can regularly visit this and got more and more knowledge from this official site.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.