# Enrich IPs with geoip FileBeat and Elasticsearch

**URL:** <https://discuss.elastic.co/t/enrich-ips-with-geoip-filebeat-and-elasticsearch/348154>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 28, 2023, 2:27pm UTC](https://discuss.elastic.co/t/enrich-ips-with-geoip-filebeat-and-elasticsearch/348154 "2023-11-28T14:27:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wad1636](https://avatars.discourse-cdn.com/v4/letter/w/3ab097/32.png) [@Wad1636](https://discuss.elastic.co/u/Wad1636)\
**Post date:** [November 28, 2023, 2:27pm UTC](https://discuss.elastic.co/t/enrich-ips-with-geoip-filebeat-and-elasticsearch/348154/1 "2023-11-28T14:27:27Z")

</div>

Hello,

I would like to obtain the geolocation of IP addresses using Filebeat and Elasticsearch. To sort the IP addresses, I am using a "dissect" schema as follows:

_- dissect:_

- 

```
 tokenizer: '%{+MMM d HH:mm:ss} %{nextcloud.host} %{nextcloud.hostname}[%{nextcloud.process_id}]: {"reqId":"%{nextcloud.reqId}","level":%{nextcloud.level},"time":"%{nextcloud.time}","remoteAddr":"%{nextcloud.IP}","user":"%{nextcloud.user}","app":"%{nextcloud.app}","method":"%{nextcloud.method}","url":"%{nextcloud.url}","message":"%{nextcloud.fileMessage}","userAgent":"%{nextcloud.userAgent}","version":"%{nextcloud.version}","data":{"app":"%{nextcloud.dataApp}"}'*

```

I would like to obtain the geolocation of the "nextcloud.IP" variable in the "dissect" schema, but I don't understand how to enrich the IP addresses. I have looked at this documentation, but it hasn't provided me with concrete solutions: [Enrich events with geoIP information](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-geoip.html)

Thank you for your help.

---

<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:** [December 26, 2023, 4:28pm UTC](https://discuss.elastic.co/t/enrich-ips-with-geoip-filebeat-and-elasticsearch/348154/2 "2023-12-26T16:28:06Z")

</div>

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