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

unsupported type 'unquote' in otel contrib 0.77 #26683

Closed
kadhamecha-conga opened this issue Sep 14, 2023 · 4 comments
Closed

unsupported type 'unquote' in otel contrib 0.77 #26683

kadhamecha-conga opened this issue Sep 14, 2023 · 4 comments
Labels

Comments

@kadhamecha-conga
Copy link

Component(s)

receiver/filelog

What happened?

hi team,

i'm getting below error when try to unqoute the body.

 collector server run finished with error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:
error decoding 'receivers': error reading configuration for "filelog": 1 error(s) decoding:
error decoding 'operators[48]': unsupported type 'unquote'

if something which can't be done using unqoute operator , is there any other way around to unqoute and remove extra backslash from json logs?

the message in body as
"body": "{"SeverityText":"Information","Message":"Processing message"}\n"

i'm refering below doc to unqoute the body.

https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/stanza/docs/operators/unquote.md#example-configurations

Collector version

0.77

Environment information

kubernetes

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@kadhamecha-conga kadhamecha-conga added bug Something isn't working needs triage New item requiring triage labels Sep 14, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

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

@jangaraj
Copy link
Contributor

Could you try 0.85.0 version, pls?
I believe this MR fix the issue - #26453

@kadhamecha-conga
Copy link
Author

hi @jangaraj .

is this correct way to unquote body ?

thanks.

@djaglowski
Copy link
Member

@kadhamecha-conga, thanks for pointing out this typo. I've opened #27025 to address it.

I'll close this issue but please let us know if you are unable to use the operator on the latest version.

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

No branches or pull requests

5 participants