# Mac Address type

**URL:** <https://discuss.elastic.co/t/mac-address-type/29551>\
**Category:** Elasticsearch\
**Created:** [September 18, 2015, 8:17am UTC](https://discuss.elastic.co/t/mac-address-type/29551 "2015-09-18T08:17:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Raj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_raj/32/14818_2.png) [@Rohit\_Raj](https://discuss.elastic.co/u/Rohit_Raj)\
**Post date:** [September 18, 2015, 8:17am UTC](https://discuss.elastic.co/t/mac-address-type/29551/1 "2015-09-18T08:17:49Z")

</div>

Is there a type for mapping Mac Address in elasticsearch? Like for IP address we have ip type so how should Mac Address be mapped?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 18, 2015, 8:54am UTC](https://discuss.elastic.co/t/mac-address-type/29551/2 "2015-09-18T08:54:29Z")

</div>

What kind of searches do you want to make? Do you need efficient prefix searches?

---

<div class="post-metadata">

**Author:** ![Rohit\_Raj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_raj/32/14818_2.png) [@Rohit\_Raj](https://discuss.elastic.co/u/Rohit_Raj)\
**Post date:** [September 18, 2015, 9:04am UTC](https://discuss.elastic.co/t/mac-address-type/29551/3 "2015-09-18T09:04:54Z")

</div>

We want to see addresses in world map like in Tile Map.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 18, 2015, 11:19am UTC](https://discuss.elastic.co/t/mac-address-type/29551/4 "2015-09-18T11:19:45Z")

</div>

Okay. Since MAC addresses don't have a geographic connection in the same way as IP addresses, perhaps you can use the [translate filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html) to map known MAC addresses to a geographic location? You'd obviously have to maintain that mapping table on your own.

---

<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 5, 2017, 11:49pm UTC](https://discuss.elastic.co/t/mac-address-type/29551/5 "2017-07-05T23:49:27Z")

</div>


