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

Support non-string bodies on OpenTelemetry logs #1976

Open
KodrAus opened this issue Oct 6, 2023 · 0 comments
Open

Support non-string bodies on OpenTelemetry logs #1976

KodrAus opened this issue Oct 6, 2023 · 0 comments

Comments

@KodrAus
Copy link
Member

KodrAus commented Oct 6, 2023

The OpenTelemetry spec for log bodies suggests they should be string values, but may be structured data. Fluent Bit's OpenTelemetry output is an example of a source that uses non-string bodies. See also fluent/fluent-bit#7649.

Seq's /ingest/otlp/v1/logs endpoint currently only maps the body if it's a string value, meaning logs ingested directly from Fluent Bit come through as empty.

One workaround is to put the OpenTelemetry Collector between Fluent Bit and Seq, since the collector has a specific input for Fluent Bit that unpacks its values into attributes.

Another workaround is to use Fluent Bit's generic HTTP output and send logs as CLEF directly to Seq as described in this blog post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant