How to build a kibana pluggin

hi all,

I'm a new one with kinaba, I want to build a pluggin that collect data from ES and show result as a report on kibana pluggin.
Please tell me know steps need to do? I tried to create "helloworld" kibana plugin from here(https://github.com/TrumanDu/kibana-plugin-development-tutorial) and I got below error when I run "sao kibana-plugin":

C:\Working\Sources\ES\kibana-plugin-development-tutorial-master>sao kibana-plugin
error An unexpected error occurred: "https://registry.yarnpkg.com/sao-kibana-plugin: Not found".

yarn add v1.19.1
info No lockfile found.
[1/4] Resolving packages...
info If you think this is a bug, please open a bug report with the information provided in "C:\Users\thphuc\.sao\V1
\packages\638505c2\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

C:\Working\Sources\ES\node-v10.15.2-win-x64\node_modules\sao\lib\installPackages.js:108
**** throw new SAOError(Failed to install ${packageName} in ${cwd})****

Thanks for any help.

Hey @jaytran, I'd recommend starting by looking at our contributor guide, particularly the section about configuring your development environment: https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#setting-up-your-development-environment

After you get Kibana up and running, you can run node ./scripts/generate_plugin.js awesome-plugin to generate the required boilerplate for a new plugin.

Thank you for your response. I generated kibana plugin, but I got an error related 'version'

I checked the version when I created my plugin is the same with version of kibana(8.0.0). As my understanding, latest version of kibana is 7.4.x, but I don't know the version at my machine is 8.0.0
please help

I found it easier to follow this tutorial when developing plugins:
https://www.elastic.co/guide/en/kibana/current/development-plugin-resources.html

Also to get version 7.4 on your machine just pull the 7.4 Git IE:
git clone -b v7.4.0 https://github.com/elastic/kibana.git kibana

above issue is resolved, problem is I checkout kibana-master, kibana-master is version 8, it is incompatible with ES7.x

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