Skip to content

Property doesn't render correctly if property, used as a part of it is mapped to the label #138

@mishamyte

Description

@mishamyte

Discussed in #137

Originally posted by Depechie October 7, 2022
Was wondering if we are doing something wrong, or misjudging the features?
Currently we use Serilog to format our log entries and use the loki sink to push it in json format.

If we look at a result in Loki we get this

Screenshot 2022-10-07 155644

If we now use the propertiesAsLabel feature we get following result

Screenshot 2022-10-07 160254

So the actual properties are indeed transformed, but that seems to also impact the payload structure... the Message line now no longer maps the data but only show the placeholders, like {RequestPath}.

Is this expected behaviour?

Which version of Serilog.Sinks.Grafana.Loki are you using?

v8.0.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions