I am using the OpenTelemetry library in my .NET application to collect logs. These logs are sent to Grafana Alloy, which then forwards them to Grafana Loki.
Currently, the JSON-based logs are not displayed as a single line in Loki, and I want to configure Grafana Alloy to ensure that:
- Logs appear as a single line.
- All attributes and labels are preserved.
How can I achieve this configuration in Grafana Alloy? Are there any specific examples or settings that I should follow?
Any guidance or examples would be greatly appreciated!