Can you manually curl to get geo data?

I have an Elasticsearch cluster that does not have internet access for security. According to the documentaiton it is possible to mirror your own geoip endpoint

I have a mirror setup, however I'm unable to test if the mirror is working because its not clear to me how Elasticsearch downloads the data from

I'm attempting something like this using curl


Which unfortunately just gives me this error

            <!DOCTYPE html>
            <html lang="en">
                <meta charset="utf-8">
                <title>400 Bad Request</title>
            <body align="center">
                <div role="main" align="center">
                    <h1>400: Bad Request</h1>
                    <p>The request could not be understood by the server due
                to malformed syntax.</p>
                    <hr />
                <div role="contentinfo" align="center">

I'm unable to find API documentation for How can I manually download the data to test if my proxy is working?

My proxy captured this when pointing Elasticsearch at the mirror - - [12/Jan/2022:14:19:16 -0700] "GET /geoip_elastic_co/v1/database?key=d1000358-2c34-4c4c-8f4b-REDACTED&elastic_geoip_service_tos=agree HTTP/1.1" 404 74 "-" "Manticore 0.7.1"

So a curl request that works is

curl ""

Terraform code for mirroring in artifactory

resource "artifactory_remote_repository" "geoip-elastic-co" {
  key                     = "geoip-elastic-co-remote"
  package_type            = "generic"
  url                     = ""
  repo_layout_ref         = "simple-default"
  store_artifacts_locally = false
  propagate_query_params  = true
  notes                   = "managed by terraform"
  content_synchronisation {
    enabled = false
  includes_pattern = "v1/database/*"

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