Using logstash-output-loki container: http json stored as invalid json =>

Hi,

I’m using the logstash to loki container. Logstash is receiving a json body via http. Loki is receiving the data where all json fields have a “=>” instead of a “:” between field and value.
This renders the “| json” LogQL invalid returning JSONParserErr.

Regards,
Erik

What can I do?

Example data in Loki: {“wlc”=>{“ops”=>{“wireless”=>{“client-traffic-measurement”=> …}
Expected in Loki: {“wlc”:{“ops”:{“wireless”:{“client-traffic-measurement”: …}

My pipeline config:
input {
http {
port => 8883
}
}
output {

stdout { }

loki {
url => “http://loki:3100/loki/api/v1/push
message_field => “payload”
}
}

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.