-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Unquote operators of filelog receiver error #29325
Comments
Pinging code owners for receiver/filelog: @djaglowski. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @freshchen, can you provide the full configuration of the OpenTelemetry Collector that you're using, as well as an example log file that is hitting this error? This would help us give you more direction on what's going wrong here. |
Is this the part you are trying to unquote? This appears to be a json string, so you would need to use |
Closing as there is no clear action here. |
Thanks for the answer. Later, I found a way to skip this question. |
Component(s)
No response
What happened?
Description
helm: 0.73.1
app version:0.88.0
CRI:docker
otel filelog receiver -> loki
I get below log in grafana
and i want to remove \n and Escape,then i try Unquote
from: attributes.log
to: "body"
field: body
I didn’t encounter this problem when using promtail before
Expected Result
{"body":"2023-11-17 21:03:26,830 [appEnv=web-empty.app instance=web-empty-564cd5f7d9-f25dh tid=0d17ab91fb81cb1da5eead2866add518 sid=47a1447df7b57517] [http-nio-8080-exec-5][INFO] c.b.m.cloudnative.web.log.HttpLog.? - Resp httpCode=200 ; body={"status":"UP"} ; cost=total:2ms"}
Actual Result
error
Collector version
0.88.0
Environment information
Environment
CRI:docker
k8s: 1.24
OpenTelemetry Collector configuration
No response
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: