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

Collector complains about "Could not dynamically add mapping for field [http.connection.id]" #1866

Open
mviitane opened this issue Dec 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mviitane
Copy link
Member

Bug Report

Which version of the demo you are using?

Using main latest:
$ git log
commit e3548c6 (HEAD -> main, upstream/main)
Date: Sun Dec 22 08:49:02 2024 -0500

Symptom

Collector batchprocessor and opensearch exporter complains about
Could not dynamically add mapping for field [http.connection.id]
Existing mapping for [attributes.http] must be of type object but found [text]

otel-collector  | 2024-12-23T12:40:13.035Z	warn	[email protected]/batch_processor.go:263	Sender failed	{"kind": "processor", "name": "batch", "pipeline": "logs", "error": "not retryable error: Permanent error: {\"type\":\"mapper_parsing_exception\",\"reason\":\"Could not dynamically add mapping for field [http.connection.id]. Existing mapping for [attributes.http] must be of type object but found [text].\",\"caused_by\":
...
otel-collector  | 2024-12-23T12:40:13.449Z	error	internal/base_exporter.go:139	Exporting failed. Rejecting data.	{"kind": "exporter", "data_type": "logs", "name": "opensearch", "error": "not retryable error: Permanent error: {\"type\":\"mapper_parsing_exception\",\"reason\":\"Could not dynamically add mapping for field [http.connection.id]. Existing mapping for [attributes.http] must be of type object but found [text].\",\"caused_by\":
...

What is the expected behavior?

No complains.

Reproduce

Could you provide the minimum required steps to resolve the issue you're seeing?

docker compose build
docker compose run
docker compose logs otel-collector

Workaround

Disable logs pipeline in the Collector.

Additional context

Related to #1833

However, this occurs with standard demo components without enabling any vendor backends.

@mviitane mviitane added the bug Something isn't working label Dec 23, 2024
@mviitane
Copy link
Member Author

This seems to be related to the envoy access logs and #1768

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

No branches or pull requests

1 participant