[exporter/loki] add support for logfmt #15351
Labels
comp:grafanalabs
Grafana Labs components - Loki, Grafana
enhancement
New feature or request
exporter/loki
Loki Exporter
translator/loki
Is your feature request related to a problem? Please describe.
I have a use case for sending logfmt-formatted log records through the otelcol to Loki. But loki exporter encodes them in JSON, ending up with
{ "Body": "{{message}}" }
. This requires workarounds down the line to unwrap the JSON.It would be great to have direct logfmt support for the Loki exporter.
Describe the solution you'd like
Add a
loki.format
attribute hint, that, if provided with valuelogfmt
, will cause exporter to format logs using logfmt instead of JSON.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: