cURL
curl --request POST \ --url https://api.alerty.ai/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": 100 }'
[ { "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": {} } ]
Retrieve logs based on the specified filters.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Logs retrieved
The response is of type object[].
object[]