Comments (2)
Hello!
The timestamp, as mentioned in the document you referenced, needs to be in nanoseconds, so something along the lines of 1715165546164724000
for 2024-05-08T18:52:26.164724+08:00
.
As such, I was able to issue your command using my local install after making this adjustment:
curl --request POST \
--url http://localhost:3100/loki/api/v1/push \
--header 'Content-Type: application/json' \
--data '{
"streams": [
{
"stream": {
"label": "value"
},
"values": [
[
"1715313600000000000",
"{\"level\":\"info\",\"message\":\"Hello world2!\"}"
],
[
"1715313600000000000",
"{\"level\":\"info\",\"message\":\"Hello world!\"}"
]
]
}
]
}'
from loki.
Hello!
The timestamp, as mentioned in the document you referenced, needs to be in nanoseconds, so something along the lines of
1715165546164724000
for2024-05-08T18:52:26.164724+08:00
.As such, I was able to issue your command using my local install after making this adjustment:
curl --request POST \ --url http://localhost:3100/loki/api/v1/push \ --header 'Content-Type: application/json' \ --data '{ "streams": [ { "stream": { "label": "value" }, "values": [ [ "1715313600000000000", "{\"level\":\"info\",\"message\":\"Hello world2!\"}" ], [ "1715313600000000000", "{\"level\":\"info\",\"message\":\"Hello world!\"}" ] ] } ] }'
Thank you very much for reply, it now works.
But I have another problem, no logs can be found in grafana cloud, could you check this? #12935
from loki.
Related Issues (20)
- Failed to load log volume for this query
- loki-rules in alertmanager not creating ALERTS metrics
- Loki: Logs Disappear from Logs volume:
- Loki write pods in crashBackOff loop - Migrating to TSDB HOT 1
- Ruler config CRD remote_write client authorisation type needs to be basic and bearer.
- Unrecognized storage client after schema upgrade
- Docs feedback: /docs/sources/send-data/promtail/stages/pack.md
- track query bytes used by explore logs queries
- promtail support log rotations
- Container not found error for azure blob storage HOT 1
- no matches for kind "Statefulset" in group "apps"
- Failed to get shards for expressions
- patterns API: always returns 1-2 data points no matter the time range
- Slow performance/timeout for count_over_time on < 1,000 logs
- Queries with multiple patterns chained with `or` produce incorrect results
- Grafana/Loki slow to load more than 2k logs
- [Helm] Ingester rollout-group collides with Mimir
- Low performance of bloom compaction in Loki 3.0: OOMs and crashes HOT 1
- Can't connect Loki to Grafana in k8s
- Alertmanager client config present in Ruler CRD, however no config is generated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loki.