# Log Sources

It is essential to identify the origin of the logs before choosing the right approach to installing and configuring the [<mark style="color:blue;">Fluent Bit</mark>](https://docs.fluentbit.io/manual) agent. However, to provide convenient parsing and data labeling, <code class="expression">space.vars.ionos\_cloud</code> accepts logs from the following four log sources: Kubernetes, Docker, Systemd, and Generic (Example: `HTTP`). The configuration of these log sources varies accordingly.

{% hint style="info" %}
**Note:** Technically, you can send logs with Fluent Bit from any source if the following communication protocols are supported: **TCP** and **HTTP**. The only convenient parsing currently offered is using the specified log sources.
{% endhint %}

{% tabs %}
{% tab title="Kubernetes" %}
This method lets you collect and ship your Kubernetes application's logs. [<mark style="color:blue;">Fluent Bit</mark>](https://docs.fluentbit.io/manual/installation/downloads/kubernetes) offers a wide range of information on how to set it up on your Kubernetes cluster. However, we also recommend you try our [<mark style="color:blue;">Kubernetes configuration examples</mark>](https://github.com/ionos-cloud/observability-services-user-documentation/tree/main/logging/examples/kubernetes) before configuring the log source.
{% endtab %}

{% tab title="Docker" %}
If you have a set of applications on Docker, refer to the [<mark style="color:blue;">Docker configuration examples</mark>](https://github.com/ionos-cloud/observability-services-user-documentation/tree/main/logging/examples/docker) for more information. You can also find more information about Docker configuration on [<mark style="color:blue;">Fluent Bit's official website</mark>](https://docs.fluentbit.io/manual/installation/downloads/docker).
{% endtab %}

{% tab title="Systemd" %}
To set up Fluent Bit on a Linux system with systemd or journals, you must install an appropriate package for your Linux distribution. For more information about how to accomplish it, see [<mark style="color:blue;">Fluent Bit's official website</mark>](https://docs.fluentbit.io/manual/installation/getting-started-with-fluent-bit). We also recommend you try our [<mark style="color:blue;">Linux systemd</mark>](https://github.com/ionos-cloud/observability-services-user-documentation/tree/main/logging/examples/systemd) sample configuration.
{% endtab %}

{% tab title="Generic" %}
You can also send logs through the HTTP REST endpoint. You can transfer logs that are in JSON format only via the HTTP REST endpoint.

The following is an example:

```bash
curl --location \
--request POST 'https://12be6dbe134f-logs.3b0b424eb27f.logging.de-txl.ionos.com/myhttp' \
--header 'Content-Type: application/json' \
--header 'APIKEY: <KEY>' \
--data '{ 
           "status": "Ready",
           "ts": 1580306777.04728,
           "pod": {
                   "name": "Example Name",
                   "namespace": "data"
                  },
           "msg": "Pod status updated",
           "level": "error",
           "label_1": "test label"
           }'
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionos.com/cloud/observability/logging-service/overview/log-sources.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
