# Developing plugins for kibana

**URL:** <https://discuss.elastic.co/t/developing-plugins-for-kibana/285942>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [October 5, 2021, 3:45pm UTC](https://discuss.elastic.co/t/developing-plugins-for-kibana/285942 "2021-10-05T15:45:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slava\_Gavrilov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slava_gavrilov/32/46287_2.png) [@Slava\_Gavrilov](https://discuss.elastic.co/u/Slava_Gavrilov)\
**Post date:** [October 5, 2021, 3:45pm UTC](https://discuss.elastic.co/t/developing-plugins-for-kibana/285942/1 "2021-10-05T15:45:44Z")

</div>

Hi. In my dicovery page of kibana i'm using url format field (kibana format) I want to that ref in field opend in modal window or something, not in new tab or current tab. I met kibana plugin develobment. The command  
`node script/generate_plugin.js -name portaudit -y` gives me folder plugin/portaudit with consist

```auto
plugins/portaudit/
├── common
│ └── index.ts
├── kibana.json
├── package.json
├── public
│ ├── application.tsx
│ ├── components
│ │ └── app.tsx
│ ├── index.scss
│ ├── index.ts
│ ├── plugin.ts
│ └── types.ts
├── README.md
├── server
│ ├── index.ts
│ ├── plugin.ts
│ ├── routes
│ │ └── index.ts
│ └── types.ts
├── translations
│ └── ja-JP.json
└── tsconfig.json

```

When I starting kibana I got an error like "Elastic did not load properly. Check the server output for more information." and i got 404 for link 9007199254740991/bundles/plugin/portaudit/1.0.0/portaudit.plugin.js  
Then I create folder and file

```auto
mkdir -p target/public
touch target/public/portaudit.plugin.js

```

The 404 turn to 200 and i got another error

```auto
Version: 7.15.1
Build: 9007199254740991
Error: Definition of plugin "portaudit" not found and may have failed to load.
    at read (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:18630:11)
    at PluginWrapper.createPluginInstance (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:18467:84)
    at PluginWrapper.setup (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:18420:26)
    at PluginsService.setup (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:18725:40)
    at async CoreSystem.setup (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:12737:7)
    at async Module. __kbnBootstrap__ (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:16789:17)

```

How I can run my own plugin?  
I planned using jquery to get all elenents of `<a>` tag in discovery, set onclick function and open it with window.open method of js.  
Is in possible with kibana plugins? I relaly weak with React Vue os somethng. Maybe someone tells me how to deal with it correctly. Thanks.

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [October 8, 2021, 2:49pm UTC](https://discuss.elastic.co/t/developing-plugins-for-kibana/285942/2 "2021-10-08T14:49:34Z")

</div>

Hello @Slava_Gavrilov

Have you tried building your plugin? [Plugin tooling | Kibana Guide [7.15] | Elastic](https://www.elastic.co/guide/en/kibana/current/plugin-tooling.html#_build_plugin_distributable)

---

<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 5, 2021, 2:49pm UTC](https://discuss.elastic.co/t/developing-plugins-for-kibana/285942/3 "2021-11-05T14:49:52Z")

</div>

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