Get importer scheduler logs

Get all logs of a pod from Graylog.

Returns log entries from importer scheduler pod runs, sourced from Graylog. Results are returned in descending timestamp order.

Requires the importer:scheduler:read, indices.read, or importer.read permission.

Request

GET /importer/scheduler/logs

Headers

HeaderValue
AuthorizationBearer <token>

Query Parameters

ParameterTypeRequiredDescription
levelintegerNoFilter by log level (e.g. 3 for error, 6 for info).
podNamestringNoFilter log entries by pod name.
afterstringNoISO 8601 timestamp; return only entries after this time. Defaults to 1970-01-01.
beforestringNoISO 8601 timestamp; return only entries before this time. Defaults to the current time.
limitintegerNoMaximum number of log entries to return. Capped at the system maximum.

Example Request

GET /importer/scheduler/logs?podName=importer-pod-abc&level=3&limit=50
Authorization: Bearer <token>

Response

Returns a JSON array of log entry objects.

Response Body

FieldTypeDescription
timestampstringISO 8601 timestamp of the log entry.
levelintegerLog severity level.
messagestringLog message content.
podNamestringName of the pod that produced the log entry.

Example Response

[
  {
    "timestamp": "2024-06-01T10:23:45Z",
    "level": 6,
    "message": "Import completed successfully.",
    "podName": "importer-pod-abc"
  }
]
Path Params
string
required
Query Params
string

The number of items per page.

string

If inputted, only items before this timestamp with be returned.

string

If inputted, only items after this timestamp with be returned.

Headers
string
required

Makaira Instance ID

Response
200

OK

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!