# Add static data to log

**URL:** <https://discuss.elastic.co/t/add-static-data-to-log/132998>\
**Category:** Logstash\
**Created:** [May 23, 2018, 1:05pm UTC](https://discuss.elastic.co/t/add-static-data-to-log/132998 "2018-05-23T13:05:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Herrera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastian_herrera/32/53209_2.png) [@Sebastian\_Herrera](https://discuss.elastic.co/u/Sebastian_Herrera)\
**Post date:** [May 23, 2018, 1:05pm UTC](https://discuss.elastic.co/t/add-static-data-to-log/132998/1 "2018-05-23T13:05:13Z")

</div>

Hello guys, i am trying to map my ips with the office name that it belongs. My idea is to have a json or something that i can access with logstash in order to do the mapping to get the data. Is that possible or is any way to do that?

Regards

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 23, 2018, 4:26pm UTC](https://discuss.elastic.co/t/add-static-data-to-log/132998/2 "2018-05-23T16:26:01Z")

</div>

If you have a very small number of offices, a cidr filter per office might work. Or you might try a [translate](https://discuss.elastic.co/t/create-custom-geoip-database-for-logstash-5-2/79473/13) filter. Or, I think, you could [build](https://blog.maxmind.com/2015/09/29/building-your-own-mmdb-database-for-fun-and-profit/) a custom geoip database and use a geoip filter.

---

<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:** [June 20, 2018, 4:26pm UTC](https://discuss.elastic.co/t/add-static-data-to-log/132998/3 "2018-06-20T16:26:07Z")

</div>

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