Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get logs.
cURL
curl --request GET \ --url https://api.example.com/v1/telemetry/logs
import requests url = "https://api.example.com/v1/telemetry/logs" response = requests.get(url) print(response.text)
const options = {method: 'GET'}; fetch('https://api.example.com/v1/telemetry/logs', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.example.com/v1/telemetry/logs" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
{ "query": "<string>", "direction": "forward", "start_ns": 123, "end_ns": 123, "streams": [ { "labels": {}, "entries": [ { "timestamp": 123, "line": "<string>" } ] } ], "next_timestamp": 123 }
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Window to pull logs for
15m
30m
1h
2h
6h
1d
7d
30d
Filter by service_name label
Filter by level label
Filter by job label
Filter by exporter label
Restrict to a specific agent configuration id
Restrict logs to an evaluation id
Restrict logs to a test id
Restrict logs to a probe id
Substring search applied via LogQL pipeline
Advanced LogQL expression (overrides generated selector when provided)
Maximum log lines to return
1 <= x <= 5000
Return order for log entries
forward
backward
Successful Response
Executed LogQL query
Result ordering
Start window in nanoseconds
End window in nanoseconds
Hide child attributes
Unix timestamp in nanoseconds
Log message
Bookmark timestamp for pagination
Was this page helpful?
Suggestions