Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]GeoIP datasource integration in GeoIP processor #6560

Closed
2 tasks done
heemin32 opened this issue Mar 7, 2023 · 0 comments
Closed
2 tasks done

[Feature]GeoIP datasource integration in GeoIP processor #6560

heemin32 opened this issue Mar 7, 2023 · 0 comments
Labels
enhancement Enhancement or improvement to existing feature or request feature New feature or request

Comments

@heemin32
Copy link
Contributor

heemin32 commented Mar 7, 2023

Description

This document contains implementation detail on GeoIP datasource integration in GeoIP processor as part of #5856

Tasks

Tasks are listed here to track a progress in the implementation. One PR can cover multiple tasks if code change is small.

GeoIP processor

  • Add new parameter to accept datasource
  • Query datasource index during ingestion

User scenarios

Create/Update of GeoIP data source

  1. Customer makes a call to create GeoIP processor using the data source.
    1. The call succeed only when GeoIP data source state is available.
  2. The GeoIP processor query the index to enrich location data.
    1. Convert data only when the GeoIP data is in valid state
      1. “state” is available
      2. Current time is before “expire_after“
PUT _ingest/pipeline/geoip
{
  "processors" : [
    {
      "geoip" : {
        "field" : "ip",
        "target_field" : "location",
        "datasource" : "my-datasource"
      }
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants