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

[DOC]Enhance Logstash geo_shape field example #8983

Open
1 of 4 tasks
tatecn opened this issue Dec 24, 2024 · 2 comments
Open
1 of 4 tasks

[DOC]Enhance Logstash geo_shape field example #8983

tatecn opened this issue Dec 24, 2024 · 2 comments
Labels
1 - Backlog - DOC Doc writer assigned to issue responsible for creating PR.

Comments

@tatecn
Copy link

tatecn commented Dec 24, 2024

What do you want to do?

  • Request a change to existing documentation
  • Add new documentation
  • Report a technical problem with the documentation
  • Other

Tell us about your request. Provide a summary of the request.
I encountered an issue while using the logstash-output-opensearch plugin to process the geo_shape field.
It seems there are no examples or clear solutions addressing this problem.
Perhaps we could improve the documentation or provide an example to help clarify this.

I hope I could help improve.
Version: List the OpenSearch version to which this issue applies, e.g. 2.14, 2.12--2.14, or all.
2.11 or above, I use 2.11

What other resources are available? Provide links to related issues, POCs, steps for testing, etc.
Relevant issue: Can't index document for geo_shape field using logstash jdbc input

@Naarcha-AWS Naarcha-AWS added 1 - Backlog - DOC Doc writer assigned to issue responsible for creating PR. and removed untriaged labels Jan 6, 2025
@Naarcha-AWS
Copy link
Collaborator

@tatecn: Do you have more information on the problem you encountered? Specifically, do you have the response or error you encountered while trying to use the plugin?

@kolchfa-aws kolchfa-aws removed their assignment Jan 6, 2025
@tatecn
Copy link
Author

tatecn commented Jan 6, 2025

@tatecn: Do you have more information on the problem you encountered? Specifically, do you have the response or error you encountered while trying to use the plugin?

@Naarcha-AWS Here is the detailed output log:
[WARN ][logstash.outputs.opensearch][main][f935c916c86023cf18e395f59b3cdba568f48e610b7d2c85120e72db7784cbd1] Could not index event to OpenSearch.

{
  : status=>400,
  : action=>[
    "index",
    {
      : _id=>"1814625742831620096",
      : _index=>"geo_shape_bug_demo",
      : routing=>nil
    },
    {
      "jobGeoBounds"=>"{\"coordinates\":[[[-123.63249969482422,38.86429977416992],[-123.63249969482422,36.892974853515625],[-121.20817565917969,36.892974853515625],[-121.20817565917969,38.86429977416992],[-123.63249969482422,38.86429977416992]]],\"type\":\"polygon\"}",
      "jdNo"=>"1814625742831620096",
      "@version"=>"1",
      "@timestamp"=>2024-12-07T03: 40: 32.999588910Z
    }
  ],
  : response=>{
    "index"=>{
      "_index"=>"geo_shape_bug_demo",
      "_id"=>"1814625742831620096",
      "status"=>400,
      "error"=>{
        "type"=>"mapper_parsing_exception",
        "reason"=>"failed to parse field [jobGeoBounds] of type [geo_shape]",
        "caused_by"=>{
          "type"=>"parse_exception",
          "reason"=>"expected word but found: '{'"
        }
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Backlog - DOC Doc writer assigned to issue responsible for creating PR.
Projects
None yet
Development

No branches or pull requests

3 participants