Integrations /
List log sinks
Gets a list of log sinks added to this account.
Required permission
Account > Sinks > General > Read
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.logSinks
[array] requiredAn array of log sinks added to this account.- {object}A log sink object.
name
string requiredName of the log sink.id
string requiredIdentifier for the Log Sinkdescription
stringDescription of the log sink.max length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$restricted
boolean requiredIf `true`, only logs from the projects in `projects` will be sent to the log sink.projects
[array] requiredIf `restricted` is `true`, only logs from these projects will be sent to the log sink.- stringThe ID of a project.pattern^[A-Za-z0-9-]+$
status
string requiredCurrent status of the log sinkone ofpaused, running, failing, creatingoptions
{object}useCustomLabels
booleanIf `true`, we will do additional parsing on your JSON formatted log lines and your extract custom labelsforwardCdnLogs
booleanForward CDN logs from your workloadsforwardIngressLogs
booleanForward ingress logs from your workloadsforwardMeshLogs
booleanForward mesh logs from your workloadssinkType
string requiredThe type of the log sink.one ofloki, datadog_logs, papertrail, http, aws_s3, logdna, coralogix, betterStack, honeycomb, logzio, axiom, newReliccreatedAt
string requiredTimestamp of when the log sink was created.updatedAt
string requiredTimestamp of when the log sink was last updated.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/integrations/log-sinks
Example response
200 OK
The list of log sinks.
JSON
{
"data": {
"logSinks": [
{
"name": "example-log-sink",
"id": "example-project",
"description": "This is an example log sink.",
"restricted": true,
"projects": [
"default-project"
],
"options": {
"useCustomLabels": true,
"forwardCdnLogs": true,
"forwardIngressLogs": true,
"forwardMeshLogs": true
},
"sinkType": "loki",
"createdAt": "2022-06-14 15:10:42.842Z",
"updatedAt": "2022-06-14 15:10:42.842Z"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}