# Logstash GeoIP Database Manager: PKIX path building failed, \_geoip\_expired\_database tag

**URL:** <https://discuss.elastic.co/t/logstash-geoip-database-manager-pkix-path-building-failed-geoip-expired-database-tag/321073>\
**Category:** Logstash\
**Created:** [December 12, 2022, 10:35pm UTC](https://discuss.elastic.co/t/logstash-geoip-database-manager-pkix-path-building-failed-geoip-expired-database-tag/321073 "2022-12-12T22:35:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 12, 2022, 10:35pm UTC](https://discuss.elastic.co/t/logstash-geoip-database-manager-pkix-path-building-failed-geoip-expired-database-tag/321073/1 "2022-12-12T22:35:36Z")

</div>

Hello,

I started to get this error on a couple of Logstash nodes.

```auto
[2022-12-12T20:10:23,983][ERROR][logstash.filters.geoip.databasemanager] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target {:cause=>javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}

```

Basically the database manager for the geoip filter can not verify the certificated for the download target.

What is the endpoint it uses?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 12, 2022, 11:01pm UTC](https://discuss.elastic.co/t/logstash-geoip-database-manager-pkix-path-building-failed-geoip-expired-database-tag/321073/2 "2022-12-12T23:01:27Z")

</div>

The [Ingest processor in Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/geoip-processor.html) downloads from the following I am not sure if logstash is the same... but I suspect it is.

[https://geoip.elastic.co/v1/database](https://geoip.elastic.co/v1/database)

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 12, 2022, 11:31pm UTC](https://discuss.elastic.co/t/logstash-geoip-database-manager-pkix-path-building-failed-geoip-expired-database-tag/321073/3 "2022-12-12T23:31:24Z")

</div>

Yeah, you are right.

I was looking in the `geoip` filter documentation page, but there is nothing there about the endpoint, it tells you how to change the endpoint, but not what is the original endpoint.

I found it in the `logstash.yml` reference file on [github](https://github.com/elastic/logstash/blob/f21edfb7ea9a1b1008c0e1b642d239adab08a3a4/config/logstash.yml#L377).

```auto
#xpack.geoip.download.endpoint: "https://geoip.elastic.co/v1/database"

```

Also, it seems that it is an issue with SSL Decryption on my side. 🤦‍♂️

---

<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:** [January 9, 2023, 11:32pm UTC](https://discuss.elastic.co/t/logstash-geoip-database-manager-pkix-path-building-failed-geoip-expired-database-tag/321073/4 "2023-01-09T23:32:19Z")

</div>

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