I’m using the following curl command:
curl -v -H “Content-Type: application/json” -XPOST -s
“http://localhost:example/loki/api/v1/push” --data-raw ‘{“streams”:[{“stream”: {“job”: “varlogs”},“values”: [[1568234281726420425",“foo”],[“1568234269716526880”,“bar”]]}]}’
Error:
{“code”:400,“status”:“error”,“message”:“readObjectStart: expect { or n, but found ‘, error found in #1 byte of …|’{streams:[|…, bigger context …|’{streams:[{stream:{job:varlogs},values:[[156823428|…”}