Open avramenkovladyslav opened 1 month ago
@avramenkovladyslav Did you manage to solve this?
@avramenkovladyslav Did you manage to solve this?
Nope. Tried different ways with otelcol and loki resources, but didn't find a good solution to remap fields
What's wrong?
We're trying to remap the Loki labels with alloy, but it doesn't work
Steps to reproduce
Using configuration below and simple .NET application with opentelemetry logs output, the fields are not created with the action insert and from_attribute. In the meantime if we set static data like this:
it works
I used debug mode in alloy to see the actual fields before Loki transforming it, and there is a field service.name, so it's not a typo. Loki is transforming some fields with capital letter or ".", but it's not the cause in our case Is there any other way to map the fields for Loki labels?
Software version
Alloy v1.3.1 Helm chart version 0.7.0
Configuration
Logs
Output fields in Loki query: