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

[exporter/elasticsearch] OTel mapping mode doesn't work for < 8.12 #37283

Open
carsonip opened this issue Jan 17, 2025 · 2 comments
Open

[exporter/elasticsearch] OTel mapping mode doesn't work for < 8.12 #37283

carsonip opened this issue Jan 17, 2025 · 2 comments
Labels
bug Something isn't working exporter/elasticsearch

Comments

@carsonip
Copy link
Contributor

Component(s)

exporter/elasticsearch

What happened?

Description

OTel mapping mode indexing would fail because of _bulk?require_data_stream=true usage, as require_data_stream is not supported pre-8.12.

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "request [/_bulk] contains unrecognized parameter: [require_data_stream] -> did you mean [require_alias]?"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "request [/_bulk] contains unrecognized parameter: [require_data_stream] -> did you mean [require_alias]?"
  },
  "status": 400
}

Steps to Reproduce

Use OTel mode

Expected Result

Documents are successfully indexed into pre-8.12 ES

Actual Result

Documents are not successfully indexed into pre-8.12 ES

Collector version

0.117.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

Log output

Additional context

No response

@carsonip carsonip added bug Something isn't working needs triage New item requiring triage labels Jan 17, 2025
@carsonip
Copy link
Contributor Author

/label -needs-triage

Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter/elasticsearch
Projects
None yet
Development

No branches or pull requests

1 participant