Download OpenAPI specification:Download
The Logging Service offers a centralized platform to collect and store logs from various systems and applications. It includes tools to search, filter, visualize, and create alerts based on your log data.
This API provides programmatic control over logging pipelines, enabling you to create new pipelines or modify existing ones. It mirrors the functionality of the DCD visual tool, ensuring a consistent experience regardless of your chosen interface.
A pipeline consists of the building blocks of a centralized logging system including supported log agents and log sources and also public endpoints to push and access logs.
Retrieves a list of all logging pipelines.
limit | integer >= 0 Default: 0 the maximum number of elements to return (use together with offset for pagination). Default to 100 |
offset | integer >= 1 Default: 1 the first element (of the total list of elements) to include in the response (use together with limit for pagination). Default to 0 |
orderBy | string Enum: "createdDate" "lastModifiedDate" "name" Sorts the results alphanumerically in ascending order based on the specified property |
{- "id": "logging",
- "type": "collection",
- "items": [
- {
- "id": "3d0845cf-68ab-4421-b816-2d47ad8dfd62",
- "metadata": {
- "createdDate": "2021-11-22T13:37:50+01:00",
- "createdBy": "John Doe",
- "createdByUserId": "3",
- "createdByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
- "lastModifiedDate": "2021-11-22T13:37:50+01:00",
- "lastModifiedBy": "Jane Doe",
- "lastModifiedByUserId": "2",
- "lastModifiedByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "string",
- "logs": [
- {
- "public": true,
- "source": "string",
- "tag": "string",
- "protocol": "string",
- "labels": [
- "string"
], - "destinations": [
- {
- "type": "loki",
- "retentionInDays": 7
}
]
}
], - "tcpAddress": "string",
- "httpAddress": "string",
- "grafanaAddress": "string"
}
}
]
}
Creates a new logging pipeline.
The pipeline to be created.
required | object (PipelineCreateProperties) Create pipeline properties |
{- "properties": {
- "name": "string",
- "logs": [
- {
- "source": "string",
- "tag": "string",
- "protocol": "string",
- "labels": [
- "string"
], - "destinations": [
- {
- "type": "loki",
- "retentionInDays": 7
}
]
}
]
}
}
{- "id": "3d0845cf-68ab-4421-b816-2d47ad8dfd62",
- "metadata": {
- "createdDate": "2021-11-22T13:37:50+01:00",
- "createdBy": "John Doe",
- "createdByUserId": "3",
- "createdByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
- "lastModifiedDate": "2021-11-22T13:37:50+01:00",
- "lastModifiedBy": "Jane Doe",
- "lastModifiedByUserId": "2",
- "lastModifiedByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
- "state": "PROVISIONING"
}, - "properties": {
- "name": "string",
- "logs": [
- {
- "public": true,
- "source": "string",
- "tag": "string",
- "protocol": "string",
- "labels": [
- "string"
], - "destinations": [
- {
- "type": "loki",
- "retentionInDays": 7
}
]
}
], - "tcpAddress": "string",
- "httpAddress": "string",
- "grafanaAddress": "string"
}
}
You can retrieve a pipeline by using its ID. This value can be found in the response body when a pipeline is created or when you GET a list of pipelines.
pipelineId required | string The unique ID of the pipeline |
{- "id": "3d0845cf-68ab-4421-b816-2d47ad8dfd62",
- "metadata": {
- "createdDate": "2021-11-22T13:37:50+01:00",
- "createdBy": "John Doe",
- "createdByUserId": "3",
- "createdByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
- "lastModifiedDate": "2021-11-22T13:37:50+01:00",
- "lastModifiedBy": "Jane Doe",
- "lastModifiedByUserId": "2",
- "lastModifiedByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "string",
- "logs": [
- {
- "public": true,
- "source": "string",
- "tag": "string",
- "protocol": "string",
- "labels": [
- "string"
], - "destinations": [
- {
- "type": "loki",
- "retentionInDays": 7
}
]
}
], - "tcpAddress": "string",
- "httpAddress": "string",
- "grafanaAddress": "string"
}
}
Delete a logging pipeline.
pipelineId required | string The unique ID of the pipeline |
{- "id": "3d0845cf-68ab-4421-b816-2d47ad8dfd62",
- "metadata": {
- "createdDate": "2021-11-22T13:37:50+01:00",
- "createdBy": "John Doe",
- "createdByUserId": "3",
- "createdByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
- "lastModifiedDate": "2021-11-22T13:37:50+01:00",
- "lastModifiedBy": "Jane Doe",
- "lastModifiedByUserId": "2",
- "lastModifiedByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
- "state": "DESTROYING"
}, - "properties": {
- "name": "string",
- "logs": [
- {
- "public": true,
- "source": "string",
- "tag": "string",
- "protocol": "string",
- "labels": [
- "string"
], - "destinations": [
- {
- "type": "loki",
- "retentionInDays": 7
}
]
}
], - "tcpAddress": "string",
- "httpAddress": "string",
- "grafanaAddress": "string"
}
}
Patch attributes of a logging pipeline.
pipelineId required | string The unique ID of the pipeline |
The modified pipeline.
required | object (PipelinePatchProperties) Patch pipeline properties |
{- "properties": {
- "name": "string",
- "logs": [
- {
- "source": "string",
- "tag": "string",
- "protocol": "string",
- "labels": [
- "string"
], - "destinations": [
- {
- "type": "loki",
- "retentionInDays": 7
}
]
}
]
}
}
{- "id": "3d0845cf-68ab-4421-b816-2d47ad8dfd62",
- "metadata": {
- "createdDate": "2021-11-22T13:37:50+01:00",
- "createdBy": "John Doe",
- "createdByUserId": "3",
- "createdByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
- "lastModifiedDate": "2021-11-22T13:37:50+01:00",
- "lastModifiedBy": "Jane Doe",
- "lastModifiedByUserId": "2",
- "lastModifiedByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "string",
- "logs": [
- {
- "public": true,
- "source": "string",
- "tag": "string",
- "protocol": "string",
- "labels": [
- "string"
], - "destinations": [
- {
- "type": "loki",
- "retentionInDays": 7
}
]
}
], - "tcpAddress": "string",
- "httpAddress": "string",
- "grafanaAddress": "string"
}
}
Generates a new key for a pipeline invalidating the old one. The key is used for authentication when sending logs (Shared_Key parameter in the context of fluent-bit).
pipelineId required | string The unique ID of the pipeline |
{- "key": "string"
}
Central logging is a feature that allows you to use other products to send logs to a central location. This is useful for monitoring and analyzing logs from multiple sources.
Toggles the central logging.
Toggle central logging.
object |
{- "properties": {
- "enabled": false
}
}
{- "metadata": {
- "lastModifiedDate": "2021-11-22T13:37:50+01:00",
- "lastModifiedBy": "Jane Doe",
- "lastModifiedByUserId": "2",
- "lastModifiedByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
}, - "properties": {
- "enabled": false
}
}
Gets the central logging properties.
{- "metadata": {
- "lastModifiedDate": "2021-11-22T13:37:50+01:00",
- "lastModifiedBy": "Jane Doe",
- "lastModifiedByUserId": "2",
- "lastModifiedByUserUuid": "2f32f7de-8c33-11ed-a824-32bde7c5c90d",
}, - "properties": {
- "enabled": false
}
}