-
Notifications
You must be signed in to change notification settings - Fork 859
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
otel sdk unexpectedly extract log data #12573
Comments
are you using logstash? if so, I wonder if #12513 will help... |
we use logback as logging framework |
can you give an example of how you are logging that ends up outputting the json above? |
as my understanding, sdk will extract some message fields to attributes like trace_id, thread etc, but field http_request and http_response should be kept. |
|
above is my log config |
what do you pass to the logger, e.g. message, mdc, etc? |
@howan36 the log output and the configuration you have provided do no match as far as I can tell. Please provide a minimal application that reproduces your issue along with any necessary instructions. |
we true use logstash markers, and when for that issuer PR will be merged |
I've tagged that PR to automatically close this issue, so you'll be notified when it's merged |
{
"@timestamp": "2024-11-03T01:19:54.333781834+08:00",
"@Version": "1",
"message": "200 OK GET https://api-dev-mpp.xxxx.cn/api/routes/updatedAt",
"logger_name": "org.zalando.logbook.Logbook",
"thread_name": "reactor-http-epoll-4",
"level": "TRACE",
"level_value": 5000,
"http_request": Object{...},
"http_response": Object{...}
}
the log from my container stdout is like above, but data in grafana loki only has message field content,
like: timestape 200 OK POST https://api-dev-mpp.xxxx.cn/api/routes/updatedAt, others are missing
i am not sure how to change this default extract behaviour of java otel sdk
The text was updated successfully, but these errors were encountered: