Kibana 4.6 directory structure


I am using Kibana4.1.4 with ES 1.7 and creating log export using Elasticdump behind Nginx. I have Keystone for authentication purpose and I have wrote code for authentication logic in KibanaDir/src/app.js file.

Now I am trying to upgrade Kibana to 4.6.1 with ES 2.4 and kibana app is now hosted at /app/kibana rather than /kibana and code and directory structure is changed as well.
I have found the work around with Nginx

location ~ (/app/kibana|/bundles/|/kibana4|/status|/plugins) { proxy_pass http://localhost:5601; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; rewrite /kibana4/(.*)$ /$1 break; }

I am unable to find the module where I can add my code to enable authentication with Keystone and I think this is causing issue with export.

Can anyone please help me with new directory structure of Kibana4.6.1 and their purpose as lead?

I am not familiar with Keystone, can you point me in the right direction so I can further understand?

Also, what do you mean by "and their purpose as lead"

Thanks for the reply. "and their purpose as lead" is just asking that help with directory structure as lead/help to solve this problem. That is nothing.

With Kibana 4.1.4, KibanaDir/src/app.js file was starting point of Kibana so previous developer added some functions(NodeJS) to contact Keystone for token and authenticate user. I guess you need not to know about Keystone to help me here.

For context, that code helps getting user's token from Keystone and other things, so that Kibana can only be accessed through the some domain, not just be typing myIP:5601.

I would like to know where(which file in Kibana 4.6.1) I could add those functions , so that authentication can take place before starting Kibana. I am very much confused and have no idea of NodeJS but bit idea of JS.


Diff to both app.js file can be seen at:

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