This Elasticsearch / Opensearch processor works based on a static database; therefore, Wazuh can only detect the GeoLocation information available in that database.
You can follow the below steps to update geolocation database manually.
- Create an free account with Maxmind using the following documentation Create an Account or use the following link GeoLite2 Sign Up | MaxMind.
- Download and install the GeoIP Update using the following links:
Releases · maxmind/geoipupdate
GitHub - maxmind/geoipupdate: GeoIP update client code - It will create the geoipupdate file.
- Then you need to update the GeoIP.conf file or you can download it from the account portal. Updating GeoIP and GeoLite Databases
- After that, you can run geoipupdate file using geoipupdate -v command ato download the updated database. It will download the files to /usr/share/GeoIP location.

- Now you can replace the files to /usr/share/wazuh-indexer/modules/ingest-geoip folder and update the user from root to wazuh-indexer using the following command.
cp -r /usr/share/GeoIP/* /usr/share/wazuh-indexer/modules/ingest-geoip
chown -R wazuh-indexer:wazuh-indexer /usr/share/wazuh-indexer/modules/ingest-geoip/Geo* - Now you need to restart your wazuh components to apply the changes.
You can set up the cronjob to update this database automatically at
/usr/share/GeoIP location at a given time.
Updating GeoIP and GeoLite Databases Note: You can also directly download the database from the account and replace files at wazuh-indexer to update the database. You can follow
Updating GeoIP and GeoLite Databases document for that.
![]()

Hope this information helps you. Please feel free to reach out to us for any information/issues.