# How to build a kibana pluggin

**URL:** <https://discuss.elastic.co/t/how-to-build-a-kibana-pluggin/205035>\
**Category:** Kibana\
**Created:** [October 24, 2019, 9:46am UTC](https://discuss.elastic.co/t/how-to-build-a-kibana-pluggin/205035 "2019-10-24T09:46:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaytran](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jaytran](https://discuss.elastic.co/u/jaytran)\
**Post date:** [October 24, 2019, 9:46am UTC](https://discuss.elastic.co/t/how-to-build-a-kibana-pluggin/205035/1 "2019-10-24T09:46:05Z")

</div>

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](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:](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](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.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [October 24, 2019, 7:43pm UTC](https://discuss.elastic.co/t/how-to-build-a-kibana-pluggin/205035/2 "2019-10-24T19:43:56Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![jaytran](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jaytran](https://discuss.elastic.co/u/jaytran)\
**Post date:** [October 25, 2019, 8:39am UTC](https://discuss.elastic.co/t/how-to-build-a-kibana-pluggin/205035/3 "2019-10-25T08:39:02Z")

</div>

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

 ![kibana-error](https://us1.discourse-cdn.com/elastic/original/3X/7/a/7a5f8e2139b17b1f9a61dcf9007dcd39abcfba7e.png)

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

---

<div class="post-metadata">

**Author:** ![Sincore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sincore/32/56357_2.png) [@Sincore](https://discuss.elastic.co/u/Sincore)\
**Post date:** [October 25, 2019, 1:49pm UTC](https://discuss.elastic.co/t/how-to-build-a-kibana-pluggin/205035/4 "2019-10-25T13:49:10Z")

</div>

I found it easier to follow this tutorial when developing plugins:  
[https://www.elastic.co/guide/en/kibana/current/development-plugin-resources.html](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`

---

<div class="post-metadata">

**Author:** ![jaytran](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jaytran](https://discuss.elastic.co/u/jaytran)\
**Post date:** [October 28, 2019, 3:10am UTC](https://discuss.elastic.co/t/how-to-build-a-kibana-pluggin/205035/5 "2019-10-28T03:10:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 25, 2019, 3:10am UTC](https://discuss.elastic.co/t/how-to-build-a-kibana-pluggin/205035/6 "2019-11-25T03:10:53Z")

</div>

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