# View logs pushed through /api in grafana

**URL:** <https://community.grafana.com/t/view-logs-pushed-through-api-in-grafana/80010>\
**Category:** Grafana Loki\
**Tags:** api\
**Created:** [January 19, 2023, 11:40am UTC](https://community.grafana.com/t/view-logs-pushed-through-api-in-grafana/80010 "2023-01-19T11:40:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakesh15](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@rakesh15](https://community.grafana.com/u/rakesh15)\
**Post date:** [January 19, 2023, 11:40am UTC](https://community.grafana.com/t/view-logs-pushed-through-api-in-grafana/80010/1 "2023-01-19T11:40:37Z")

</div>

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](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!”}]}]}’

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [January 19, 2024, 11:41am UTC](https://community.grafana.com/t/view-logs-pushed-through-api-in-grafana/80010/2 "2024-01-19T11:41:01Z")

</div>

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