# Anyone had luck creating a formatFields plugin for Kibana 5.x?

**URL:** https://discuss.elastic.co/t/anyone-had-luck-creating-a-formatfields-plugin-for-kibana-5-x/78972
**Category:** Kibana
**Created:** [March 17, 2017, 7:07am UTC](https://discuss.elastic.co/t/anyone-had-luck-creating-a-formatfields-plugin-for-kibana-5-x/78972 "2017-03-17T07:07:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![beaugunderson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beaugunderson/32/16449_2.png) [@beaugunderson](https://discuss.elastic.co/u/beaugunderson)
#### Post date: [March 17, 2017, 7:07am UTC](https://discuss.elastic.co/t/anyone-had-luck-creating-a-formatfields-plugin-for-kibana-5-x/78972/1 "2017-03-17T07:07:34Z")

</div>

My plugin worked under 4.x but doesn't work in 5.x (it doesn't show up in the field list).

I updated it based on the changes I've seen in plugins that have been modified to work with 5.x but no dice. I can't find a single example of a third-party formatFields plugin.

Source here, it's incredibly short:

> **[canvas-medical/kibana-html-formatter](https://github.com/canvas-medical/kibana-html-formatter)**
>
> kibana-html-formatter - An HTML field formatter for Kibana

---

<div class="post-metadata">

### Author: ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)
#### Post date: [March 17, 2017, 11:06am UTC](https://discuss.elastic.co/t/anyone-had-luck-creating-a-formatfields-plugin-for-kibana-5-x/78972/2 "2017-03-17T11:06:21Z")

</div>

`import fieldFormats from 'ui/registry/field_formats';`

field\_formats exports a provider .... so

`import fieldFormatsProvider from 'ui/registry/field_formats';`  
...  
`const fieldFormats = Private(fieldsFormatProvider);`

---

<div class="post-metadata">

### Author: ![beaugunderson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beaugunderson/32/16449_2.png) [@beaugunderson](https://discuss.elastic.co/u/beaugunderson)
#### Post date: [March 17, 2017, 7:14pm UTC](https://discuss.elastic.co/t/anyone-had-luck-creating-a-formatfields-plugin-for-kibana-5-x/78972/3 "2017-03-17T19:14:50Z")

</div>

will try this now!

is there a reason it has to be done this way though, when Kibana itself uses it directly?

> <https://github.com/elastic/kibana/blob/01b426c94957adc7914371d91c9989b3a155a526/src/ui/public/stringify/register.js>

---

<div class="post-metadata">

### Author: ![beaugunderson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beaugunderson/32/16449_2.png) [@beaugunderson](https://discuss.elastic.co/u/beaugunderson)
#### Post date: [March 17, 2017, 7:17pm UTC](https://discuss.elastic.co/t/anyone-had-luck-creating-a-formatfields-plugin-for-kibana-5-x/78972/4 "2017-03-17T19:17:00Z")

</div>

also this doesn't make sense since to use `Private` the usage would have to happen inside of the definition of the `HTMLFormatProvider`, which never gets called because it isn't registered... so I think you're wrong, unfortunately ☹

another wrinkle:

if I import `ui/stringify/register` in my file then I see that all of the field types appear in the list on the field editor page **twice** , but mine still doesn't.

---

<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: [April 14, 2017, 7:17pm UTC](https://discuss.elastic.co/t/anyone-had-luck-creating-a-formatfields-plugin-for-kibana-5-x/78972/5 "2017-04-14T19:17:16Z")

</div>

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