View logs pushed through /api in grafana

Hello, I’m starting to use Loki I want to push logs using Loki api. You can see the curl command I’ve used. But I’m unable to view these logs in Grafana

curl -v -H -XPOST ‘http://localhost:3100/loki/api/v1/push’ -H ‘Content-Type: application/json’ -d ‘{“streams”: [{“labels”: “test=test”,“entries”: [{“timestamp”: “2022-01-01T00:00:00Z”,“line”: “Hello, Loki!”}]}]}’

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