# Mmdb geolocalization update

**URL:** <https://community.graylog.org/t/mmdb-geolocalization-update/30668>\
**Category:** Graylog Central (peer support)\
**Tags:** architecture\
**Created:** [November 14, 2023, 2:51pm UTC](https://community.graylog.org/t/mmdb-geolocalization-update/30668 "2023-11-14T14:51:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gianluca-valentini](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gianluca-valentini/32/1592_2.png) [@gianluca-valentini](https://community.graylog.org/u/gianluca-valentini)\
**Post date:** [November 14, 2023, 2:51pm UTC](https://community.graylog.org/t/mmdb-geolocalization-update/30668/1 "2023-11-14T14:51:29Z")

</div>

Hi,  
i’m using graylog 4.3 and the geolocalization feature with **MaxMind GeoLite2-City.mmdb** and it works fine with my rule in the pipeline.  
How graylog manage the mmdb update? Every 3d the file is updated and I need to restart Graylog to use the new version.  
Is there another way to update it without a graylog restart?

Thanks  
Gianluca

---

<div class="post-metadata">

**Author:** ![bettels-uhi](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@bettels-uhi](https://community.graylog.org/u/bettels-uhi)\
**Post date:** [November 14, 2023, 4:26pm UTC](https://community.graylog.org/t/mmdb-geolocalization-update/30668/2 "2023-11-14T16:26:23Z")

</div>

Hi,

I update the MMDB’s in my setup using the `geoipupdate` script from MaxMind:  
[MaxMind geoipupdate](https://github.com/maxmind/geoipupdate)  
Since it just replaces the database file on the filesystem, I would assume that no reboot is needed, but since I reboot my nodes every few days anyway I can’t say for sure.

Hope this helps.

Best regards

---

<div class="post-metadata">

**Author:** ![gianluca-valentini](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gianluca-valentini/32/1592_2.png) [@gianluca-valentini](https://community.graylog.org/u/gianluca-valentini)\
**Post date:** [November 15, 2023, 11:56am UTC](https://community.graylog.org/t/mmdb-geolocalization-update/30668/3 "2023-11-15T11:56:37Z")

</div>

Thanks @bettels-uhi  
I find the configuration of geoip plugin that you can enable in order to be sure that the mmdb is read in a schedule way.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/e/eada791a7139c5506ba6cd7c7af8e6f1362d31a4.png)

So i’d like to understand if there is an API that can I use in order to enable it programmatically. Do you have any suggestion?  
Using Graylog swagger I just see something about geoip adapter but nothing about that view  
Thanks  
Gianluca

---

<div class="post-metadata">

**Author:** ![gianluca-valentini](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gianluca-valentini/32/1592_2.png) [@gianluca-valentini](https://community.graylog.org/u/gianluca-valentini)\
**Post date:** [November 16, 2023, 11:30am UTC](https://community.graylog.org/t/mmdb-geolocalization-update/30668/4 "2023-11-16T11:30:25Z")

</div>

Hi I solved it using  
URL: /api/system/cluster\_config/org.graylog.plugins.map.config.GeoIpResolverConfig

json payload:

{  
“enabled”: true,  
“enforce\_graylog\_schema”: true,  
“db\_vendor\_type”: “MAXMIND”,  
“city\_db\_path”: “/etc/graylog/server/GeoLite2-City.mmdb”,  
“asn\_db\_path”: “/etc/graylog/server/GeoLite2-ASN.mmdb”,  
“refresh\_interval\_unit”: “MINUTES”,  
“refresh\_interval”: 10,  
“use\_s3”: false  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [November 30, 2023, 11:31am UTC](https://community.graylog.org/t/mmdb-geolocalization-update/30668/5 "2023-11-30T11:31:15Z")

</div>

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