diff --git a/docs/logs/ingestion.md b/docs/logs/ingestion.md index 1229f5f..08d7210 100644 --- a/docs/logs/ingestion.md +++ b/docs/logs/ingestion.md @@ -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 { @@ -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 {