# Geoip setup failure

**URL:** <https://discuss.elastic.co/t/geoip-setup-failure/306011>\
**Category:** Logstash\
**Created:** [May 31, 2022, 7:52am UTC](https://discuss.elastic.co/t/geoip-setup-failure/306011 "2022-05-31T07:52:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalev](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kalev](https://discuss.elastic.co/u/kalev)\
**Post date:** [May 31, 2022, 7:52am UTC](https://discuss.elastic.co/t/geoip-setup-failure/306011/1 "2022-05-31T07:52:32Z")

</div>

Hi,

I'm trying to setup logstash (ver 7.16) with offline geoip update based on [Geoip filter plugin | Logstash Reference [7.16] | Elastic](https://www.elastic.co/guide/en/logstash/7.16/plugins-filters-geoip.html) , but it fails on step 4:

`./bin/elasticsearch-geoip -s /usr/share/GeoIP`

```auto
A CLI tool to prepare local GeoIp database service

Option (* = required) Description
--------------------- -----------
-h, --help Show help
* -s, --source Source directory
-t, --target Target directory
-v, --verbose Show verbose output
ERROR: E is not a recognized option

```

content of /usr/share/GeoIP:

```auto
ls -l /usr/share/GeoIP
-rw-r--r--. 1 root root 56548946 Jun 7 2018 GeoLite2-City.mmdb
-rw-r--r-- 1 root root 2246679 May 31 06:55 GeoLite2-Country.dat
-rw-r--r-- 1 root root 5396546 May 31 06:55 GeoLite2-Country.mmdb

```

any hints to progress??

---

<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 28, 2022, 7:53am UTC](https://discuss.elastic.co/t/geoip-setup-failure/306011/2 "2022-06-28T07:53:16Z")

</div>

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