---
title: Telegraf Documentation
description: Telegraf plugin for sending metrics to Logz.io
url: https://docs.influxdata.com/telegraf/v1/output-plugins/logzio/
estimated_tokens: 953
product: Telegraf
version: v1
---

-   Telegraf v1.17.0+

# Logz.io Output Plugin

This plugin writes metrics to the [Logz.io](https://logz.io) service via HTTP.

**Introduced in:** Telegraf v1.17.0 **Tags:** cloud, datastore **OS support:** all

## Global configuration options

Plugins support additional global and plugin configuration settings for tasks such as modifying metrics, tags, and fields, creating aliases, and configuring plugin ordering. See [CONFIGURATION.md](/telegraf/v1/configuration/#plugins) for more details.

## Secret-store support

This plugin supports secrets from secret-stores for the `token` option. See the [secret-store documentation](/telegraf/v1/configuration/#secret-store-secrets) for more details on how to use them.

## Configuration

```toml
# A plugin that can send metrics over HTTPs to Logz.io
[[outputs.logzio]]
  ## Connection timeout, defaults to "5s" if not set.
  # timeout = "5s"

  ## Optional TLS Config
  # tls_ca = "/etc/telegraf/ca.pem"
  # tls_cert = "/etc/telegraf/cert.pem"
  # tls_key = "/etc/telegraf/key.pem"

  ## Logz.io account token
  token = "your logz.io token" # required

  ## Use your listener URL for your Logz.io account region.
  # url = "https://listener.logz.io:8071"
```

### Required parameters

Your Logz.io `token`, which can be found under “settings” in your account, is required.

### Optional parameters

-   `check_disk_space`: Set to true if Logz.io sender checks the disk space before adding metrics to the disk queue.
-   `disk_threshold`: If the queue\_dir space crosses this threshold (in % of disk usage), the plugin will start dropping logs.
-   `drain_duration`: Time to sleep between sending attempts.
-   `queue_dir`: Metrics disk path. All the unsent metrics are saved to the disk in this location.
-   `url`: Logz.io listener URL.

#### Related

-   [Configure plugins](/telegraf/v1/configure_plugins/)
-   [Logz.io Plugin Source](https://github.com/influxdata/telegraf/tree/v1.38.4/plugins/outputs/logzio/README.md)
