# Kibana custom field problem

**URL:** https://discuss.elastic.co/t/kibana-custom-field-problem/28506
**Category:** Kibana
**Created:** [September 2, 2015, 9:40am UTC](https://discuss.elastic.co/t/kibana-custom-field-problem/28506 "2015-09-02T09:40:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![piebuo](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@piebuo](https://discuss.elastic.co/u/piebuo)
#### Post date: [September 2, 2015, 9:40am UTC](https://discuss.elastic.co/t/kibana-custom-field-problem/28506/1 "2015-09-02T09:40:04Z")

</div>

Hi, i want to create a custom field in kibana, i tried to follow the instructions at

> **[Writing Custom Field Formatters for Kibana
	  	 | Elastic](https://www.elastic.co/blog/kibana-custom-field-formatters)**
>
> Kibana 4.1 introduced a new feature called field formatters, giving us the ability to visually convert fields on the fly.  Field formatters provide a great way to display data in a different way&...

  
but when i start kiban launching bin/kibana --dev i get this error:

```
    SyntaxError: Unexpected token ILLEGAL
at Function (native)
at /home/sensei/kibana/node_modules/lodash/index.js:10809:16
at /home/sensei/kibana/node_modules/lodash/index.js:11082:21
at /home/sensei/kibana/node_modules/lodash/index.js:8152:31
at Function.template (/home/sensei/kibana/node_modules/lodash/index.js:10808:20)
at Object.<anonymous> (/home/sensei/kibana/src/ui/appEntryTemplate.js:2:36)
at Module._compile (module.js:460:26)
at normalLoader (/home/sensei/kibana/node_modules/babel-core/lib/api/register/node.js:199:5)
at Object.require.extensions.(anonymous function) [as .js] (/home/sensei/kibana/node_modules/babel-core/lib/api/register/node.js:216:7)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/sensei/kibana/src/ui/UiBundleCollection.js:12:24)
at Module._compile (module.js:460:26)
at normalLoader (/home/sensei/kibana/node_modules/babel-core/lib/api/register/node.js:199:5)
optimizer crashed with status code 1

```

How can i solve it?  
and if i have success, how can i transport the new field from dev to production?  
Thanks in advance.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 3, 2015, 4:46am UTC](https://discuss.elastic.co/t/kibana-custom-field-problem/28506/2 "2015-09-03T04:46:43Z")

</div>

What does your field look like?

---

<div class="post-metadata">

### Author: ![piebuo](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@piebuo](https://discuss.elastic.co/u/piebuo)
#### Post date: [September 4, 2015, 8:51am UTC](https://discuss.elastic.co/t/kibana-custom-field-problem/28506/3 "2015-09-04T08:51:45Z")

</div>

my custom field should show a player that reproduce a mp3. The field should take the filename from the field and load the mp3 from a url completed by filename.  
What i don't undestand is 2 things:

1. i cannot start kibana dev environment because of the problems showed above altough i followed the guide step by step and i have installed all the libraries required
2. Even if i can run tge dev environment and create a new type in /src/ui/public/stringify (or /src/kibana/components/stringify), how can i port this custom field in production?  
thanks in advance

---

<div class="post-metadata">

### Author: ![piebuo](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@piebuo](https://discuss.elastic.co/u/piebuo)
#### Post date: [September 4, 2015, 11:03am UTC](https://discuss.elastic.co/t/kibana-custom-field-problem/28506/4 "2015-09-04T11:03:52Z")

</div>

i finally success to start kibana dev environment.  
i followed tihs instructions:

> **[Writing Custom Field Formatters for Kibana
	  	 | Elastic](https://www.elastic.co/blog/kibana-custom-field-formatters)**
>
> Kibana 4.1 introduced a new feature called field formatters, giving us the ability to visually convert fields on the fly.  Field formatters provide a great way to display data in a different way&...

when i reload kibana i get this errors:  
Unable to load "ui/index\_patterns/\_field\_format/FieldFormat" modules because of a generic script error.  
Uncaught Error: Unable to load "ui/index\_patterns/\_field\_format/FieldFormat" modules because of a generic script error. ([http://192.168.202.65:5601/components/notify/\_notifier.js:177](http://192.168.202.65:5601/components/notify/_notifier.js:177))

---

<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: [July 6, 2017, 2:13pm UTC](https://discuss.elastic.co/t/kibana-custom-field-problem/28506/5 "2017-07-06T14:13:44Z")

</div>


