Retrieve Logging Pipeline Information
To retrieve your logging pipeline information, you need the ID of the respective pipeline.
Request
The following is a sample request. Remember to replace the {pipelineID}
with a valid ID of the specific pipeline whose information you want to access.
curl --location \
--request GET 'https://logging.de-txl.ionos.com/pipelines/{pipelineID}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $TOKEN'
Response
If your request is successful, you will receive the relevant information on a Ready
pipeline.
{
"id": "123-5e72-4c48-b28e-4567",
"type": "Pipeline",
"metadata": {
"createdDate": "2023-05-15T08:24:20Z",
"createdBy": "clientname@ionos.com",
"createdByUserId": "2895",
"createdByUserUuid": "3423-2ad6-4826-b12f-3245",
"lastModifiedDate": "",
"lastModifiedBy": "",
"lastModifiedByUserId": "",
"lastModifiedByUserUuid": "",
"status": "Ready"
},
"properties": {
"name": "demo",
"logs": [
{
"public": true,
"source": "docker",
"tag": "dock",
"destinations": [
{
"type": "loki"
}
],
"protocol": "tcp",
"status": "Ready"
},
{
"public": true,
"source": "kubernetes",
"tag": "k8s",
"destinations": [
{
"type": "loki"
}
],
"protocol": "tcp",
"status": "Ready"
}
],
"tcpAddress": "tcp-abcd-logs.defg.logging.de-txl.ionos.com:9000",
"httpAddress": "",
"grafanaAddress": "grafana.454.logging.de-txl.ionos.com"
}
}
To access logs using Fluent Bit, you need the following information:
Set the TCP log server address during Fluent Bit configuration.
Set the HTTP log server address during Fluent Bit configuration.
Set the tag during Fluent Bit configuration. Remember to use the same tag you defined while creating the pipeline.
Note: A key is necessary to send logs through the newly formed logging pipeline. For more information about obtaining a key, see Obtain a New Key.