# Where are data types for yaml file defined?

**URL:** <https://discuss.elastic.co/t/where-are-data-types-for-yaml-file-defined/53546>\
**Category:** Logstash\
**Created:** [June 21, 2016, 5:41pm UTC](https://discuss.elastic.co/t/where-are-data-types-for-yaml-file-defined/53546 "2016-06-21T17:41:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fidel\_Netflow](https://avatars.discourse-cdn.com/v4/letter/f/f07891/32.png) [@Fidel\_Netflow](https://discuss.elastic.co/u/Fidel_Netflow)\
**Post date:** [June 21, 2016, 5:41pm UTC](https://discuss.elastic.co/t/where-are-data-types-for-yaml-file-defined/53546/1 "2016-06-21T17:41:46Z")

</div>

For instance,  
8:

- ip4\_addr \<--where is this defined
- ipv4\_source\_address

I ask because I am getting netflow records that include some extra mac address fields, and they are turning to junk before getting stashed in elasticsearch. I want to know how to create a custom data type to receive these properly and was thinking I could look at the ip4\_addr as an example.

---

<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, 4:51am UTC](https://discuss.elastic.co/t/where-are-data-types-for-yaml-file-defined/53546/2 "2017-07-06T04:51:24Z")

</div>

Closed on July 6, 2017, 4:51am UTC


