Skip to content

Commit

Permalink
Update ingestion.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Nov 29, 2023
1 parent b8cea6a commit cdbffc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/logs/ingestion.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ Insert labeled using the `line` parameter in a _LogQL stream_:

```bash
curl -i -XPOST -H "Content-Type: application/json" http://qryn:3100/loki/api/v1/push \
--data '{"streams":[{"stream":{"type":"test"},"values":[["1665767942870000000", "hello qryn"]]}]}'
--data '{"streams":[{"stream":{"type":"test"},"values":[['$(date +"%s%N")', "hello qryn"]]}]}'
```
```json
{
Expand All @@ -384,7 +384,7 @@ curl -i -XPOST -H "Content-Type: application/json" http://qryn:3100/loki/api/v1/
We can also insert labeled using the `value` parameter in a _LogQL stream_

```bash
curl -i -XPOST -H "Content-Type: application/json" http://127.0.0.1:3104/loki/api/v1/push --data '{"streams":[{"stream":{"__name__":"test_metric"},"values":[["1665767942870000000", "metric value", 100]]}]}'
curl -i -XPOST -H "Content-Type: application/json" http://127.0.0.1:3104/loki/api/v1/push --data '{"streams":[{"stream":{"__name__":"test_metric"},"values":[['$(date +"%s%N")', "metric value", 100]]}]}'
```
```json
{
Expand Down

0 comments on commit cdbffc2

Please sign in to comment.