> ## Documentation Index
> Fetch the complete documentation index at: https://docs.odigos.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Logz.io

> Configuring the Logz.io backend (Managed)

### Getting Started

<img src="https://d15jtxgb40qetw.cloudfront.net/logzio.svg" alt="logzio" className="not-prose h-20" />

**Finding Logz.io Region**

You can find your account’s region by selecting **⚙️ > Settings > General** from the top menu. Your two-letter region code is at the start of the region designation.
Another option is to sign in to your Logz.io account and look at the URL in the address bar.

If you see `app.logz.io`, your account is hosted in the US East (Northern Virginia). All other regions have a two-letter region code. For example, if you see `app-eu.logz.io`, then your account is in the Europe (Frankfurt) region.

**Obtaining Tokens**

From your account, go to the **Manage Tokens > Data shipping** tokens tab of your Operations workspace.
It can be reached by selecting **⚙️ > Settings > Manage tokens** in the ADMIN ZONE section of the side navigation menu.

### Configuring Destination Fields

<Accordion title="Supported Signals:">
  ✅ Traces
  ✅ Metrics
  ✅ Logs
  ❌ Profiles
</Accordion>

* **LOGZIO\_REGION** `string` : Region. The region of your Logz.io account
  * This field is required
* **LOGZIO\_TRACING\_TOKEN** `string` : Tracing token. The token you obtained from Logz.io
  * This field is optional
* **LOGZIO\_METRICS\_TOKEN** `string` : Metrics token. The token you obtained from Logz.io
  * This field is optional
* **LOGZIO\_LOGS\_TOKEN** `string` : Logs token. The token you obtained from Logz.io
  * This field is optional

### Adding Destination to Odigos

There are two primary methods for configuring destinations in Odigos:

##### **Using the UI**

<Steps>
  <Step>
    Use the [Odigos CLI](https://docs.odigos.io/cli/odigos_ui) to access the UI

    ```bash theme={null}
    odigos ui
    ```
  </Step>

  <Step>
    Click on `Add Destination`, select `Logz.io` and follow the on-screen instructions
  </Step>
</Steps>

##### **Using Kubernetes manifests**

<Steps>
  <Step>
    Save the YAML below to a file (e.g. `logzio.yaml`)

    ```yaml theme={null}
    apiVersion: odigos.io/v1alpha1
    kind: Destination
    metadata:
      name: logzio-example
      namespace: odigos-system
    spec:
      data:
        LOGZIO_REGION: '<Region (options: [listener.logz.io, listener-au.logz.io, listener-ca.logz.io,
          listener-eu.logz.io, listener-nl.logz.io, listener-uk.logz.io, listener-wa.logz.io])>'
      destinationName: logzio
      # Uncomment the 'secretRef' below if you are using the optional Secret.
      # secretRef:
      #   name: logzio-secret
      signals:
      - TRACES
      - METRICS
      - LOGS
      type: logzio

    ---

    # The following Secret is optional. Uncomment the entire block if you need to use it.
    # apiVersion: v1
    # data:
    #   LOGZIO_LOGS_TOKEN: <Base64 Logs token>
    #   LOGZIO_METRICS_TOKEN: <Base64 Metrics token>
    #   LOGZIO_TRACING_TOKEN: <Base64 Tracing token>
    # kind: Secret
    # metadata:
    #   name: logzio-secret
    #   namespace: odigos-system
    # type: Opaque
    ```
  </Step>

  <Step>
    Apply the YAML using `kubectl`

    ```bash theme={null}
    kubectl apply -f logzio.yaml
    ```
  </Step>
</Steps>
