I'm trying to write my own custom Kibana plugin and I want to launch custom ES queries from the client.
According to the documentation, the es service should be a way to go, but I cannot use it, because angularjs says the service is not available, namely:
Uncaught Error: [$injector:modulerr] Failed to instantiate module kibana due to:
Error: [$injector:modulerr] Failed to instantiate module esAdmin due to:
Error: [$injector:nomod] Module 'esAdmin' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.7/$injector/nomod?p0=esAdmin
The code I try to run is (from the plugin app.js):
What version of Kibana are you writing a plugin for? The esAdmin proxy was removed in 6.0+. It looks like our docs are out of date, I'll make sure those get updated.
Also if I just use es and remove esAdmin, I got a simlar exception.
Should I maybe include a specific file for the service to be available?
Uncaught Error: [$injector:modulerr] Failed to instantiate module kibana due to:
Error: [$injector:modulerr] Failed to instantiate module es due to:
Error: [$injector:nomod] Module 'es' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
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.