Send Logs to the Platform

You can send logs to the Logging Service using Fluent Bit. Based on your infrastructure—Kubernetes, Docker, Linux Systemd, or HTTP—the configuration differs.

circle-info

Prerequisites:

1

Obtain the pipeline endpoint

After creating a pipeline, the response includes either a tcpAddress or httpAddress. Save this value.

Example TCP endpoint:

12be6dbe134f-logs.3b0b424eb27f.logging.de-txl.ionos.com

Example HTTP endpoint:

https://12be6dbe134f-logs.3b0b424eb27f.logging.de-txl.ionos.com

2

Obtain a key

Use the Shared_Key (TCP) or APIKEY (HTTP) returned when you created the pipeline for authentication. To generate a new key, see Obtain a new Key.

Configure Fluent Bit

Each log source requires the pipeline endpoint and a key.

  1. Install the Fluent Bit package for your Kubernetes distribution. For more information, refer to the Fluent Bit on Kubernetes Documentationarrow-up-right.

  2. Update the Fluent Bit configuration with the tcpAddress and Shared_Key.

  3. Run Fluent Bit to forward logs to the Logging Service.

[OUTPUT]
    Name            forward
    Match           *
    Port            9000
    Tag             <TAG>
    Host            <TCP_ENDPOINT>
    tls             on
    Shared_Key      <KEY>
circle-exclamation
circle-info

Note: For more information, refer to the Kubernetes configuration examplesarrow-up-right.

Troubleshooting

  1. Verify: Open the Logging Service dashboard and confirm that logs appear.

  2. Invalid key: Check that you copied the correct Shared_Key or APIKEY.

  3. Connection errors: Verify outbound access on port 9000 (TCP) or port 443 (HTTP).

  4. No logs displayed: Enable verbose logging in Fluent Bit:

For more information, see Fluent Bit global configurationarrow-up-right.

Last updated

Was this helpful?