POST
/
query
/
logs
curl --request POST \
  --url https://localhost:7001/query/logs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "start_time": "2023-01-01T00:00:00Z",
  "end_time": "2023-01-02T00:00:00Z",
  "service_name": "<string>",
  "severity_text": "<string>",
  "limit": 123
}'
[
  {
    "timestamp": "2023-11-07T05:31:56Z",
    "trace_id": "<string>",
    "span_id": "<string>",
    "trace_flags": 123,
    "severity_text": "<string>",
    "severity_number": 123,
    "service_name": "<string>",
    "body": "<string>",
    "resource_schema_url": "<string>",
    "resource_attributes": {},
    "scope_schema_url": "<string>",
    "scope_name": "<string>",
    "scope_version": "<string>",
    "scope_attributes": {},
    "log_attributes": {}
  }
]

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
start_time
string

Start time for the query.

end_time
string

End time for the query.

service_name
string

Filter logs by service name.

severity_text
string

Filter logs by severity text.

limit
integer
default: 100

Limit the number of results.

Response

200 - application/json
timestamp
string
trace_id
string
span_id
string
trace_flags
integer
severity_text
string
severity_number
integer
service_name
string
body
string
resource_schema_url
string
resource_attributes
object
scope_schema_url
string
scope_name
string
scope_version
string
scope_attributes
object
log_attributes
object