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

# Logz.io logs

> Send env zero deployment and audit logs to Logz.io using a data shipping token and listener URL, configurable via the UI or environment variables.

![Logz.io logo](https://mintcdn.com/envzero-b61043c8/f50k_bxcw7fbjToJ/images/guides/integrations/logs-forwarding/b65137b-logz-color-lowres.png?fit=max\&auto=format\&n=f50k_bxcw7fbjToJ\&q=85\&s=ec8e9293e9ec0f0691173739bc479d2a)

Logz.io is an end to end cloud monitoring tool for unified log, metric, and trace analytics for any stack.\
env zero has the ability to send all of your deployment logs and [audit logs](https://docs.envzero.com/guides/admin-guide/audit-logs.md) directly to your Logz.io account.

## Setup

Here are the steps to configure it:

1. In your Logz.io account, navigate to `Settings` > `Manage Tokens` > `Data shipping tokens` and click on the `Logs` tab.
2. Copy the Listener URL (You can also verify your Logz.io account region and get the listener hostname using [this guide](https://docs.logz.io/user-guide/accounts/account-region.html)).
3. Copy the Logs token.
4. There are two ways to configure the integrations:

   1. ### In the env zero app

   In the [organization's integrations page](https://docs.envzero.com/guides/integrations/logs-forwarding.md), click on Logz.io and fill the form's fields:

   ![Log forwarding integration configuration form showing setup fields](https://mintcdn.com/envzero-b61043c8/f50k_bxcw7fbjToJ/images/guides/integrations/logs-forwarding/a7c17ffc628d7730930d9433fa6408b7fa1e1a947c18e21613da7166115c4cb4-image.png?fit=max\&auto=format\&n=f50k_bxcw7fbjToJ\&q=85\&s=067fa27bc07fda21ff2ab345775bfa15)

   2. ### Using environment variables

      In the env zero platform you will need to configure the following environment variables in [any scope](https://docs.envzero.com/guides/admin-guide/variables.md#variables-and-scopes-in-env-zero) you would like to have them:

      | Environment variable name | Description | Mandatory |
      | :- | :- | :- |
      | `ENV0_LOGZIO_HOST` | The Listener URL, this includes only the hostname and not a full URL - for example `listener.logz.io` | Yes |
      | `ENV0_LOGZIO_TOKEN` | The Logs token - you can read more about that [here](https://docs.logz.io/user-guide/tokens/log-shipping-tokens/) | Yes |
      | `ENV0_LOGZIO_PROTOCOL` | The shipment protocol, Logz.io supports HTTP and HTTPS - for more details see [this](https://docs.logz.io/shipping/log-sources/nodejs.html#parameters) | No - Default: HTTPS |
      | `ENV0_LOGZIO_PORT` | Destination port. Read more [here](https://docs.logz.io/shipping/log-sources/nodejs.html#parameters) | No - Default:  8070 (for HTTP) or 8071 (for HTTPS) |

env zero sets the log name according to the log type:

1. ### Audit Logs:
   * `name` - `env0-audit-logs`
2. ### Deployment Logs:
   * `name` - `env0-deployment-logs`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.