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

Log message is not formatted #5773

Closed
mkeymolen opened this issue Aug 6, 2024 · 2 comments
Closed

Log message is not formatted #5773

mkeymolen opened this issue Aug 6, 2024 · 2 comments
Labels
question Further information is requested

Comments

@mkeymolen
Copy link

What is the question?

Hi, i have a small issue with using OTEL to send my logs from a dotnet(8.0) application to ELK . Everything works fine, the traces and the logs are correlated, but the message is not formatted correctly.. however, the attributes are added correctly, it is only the string of the message which is not correctly formatted and still shows the attribute names instead of the values:
Example of the message value:

[Information] Request starting {Protocol} {Method} {Scheme}://{Host}{PathBase}{Path}{QueryString} - {ContentType} {ContentLength}

Any ideas?

Additional context

No response

@mkeymolen mkeymolen added the question Further information is requested label Aug 6, 2024
@cijothomas
Copy link
Member

https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/docs/logs/customizing-the-sdk#includeformattedmessage Can you enable this and see if that is what you are looking for?

@mkeymolen
Copy link
Author

This works, thanks!

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

No branches or pull requests

2 participants