﻿---
title: Timber output plugin
description: Plugin version: v1.0.3 (Other versions), Released on: 2017-09-02, Changelog. For questions about the plugin, open a topic in the Discuss forums. For bugs...
url: https://docs-v3-preview.elastic.dev/elastic/logstash-docs-md/tree/main/lsr/plugins-outputs-timber
---

# Timber output plugin
- Plugin version: v1.0.3 ([Other versions](https://docs-v3-preview.elastic.dev/elastic/logstash-docs-md/tree/main/vpr/output-timber-index))
- Released on: 2017-09-02
- [Changelog](https://github.com/logstash-plugins/logstash-output-timber/blob/v1.0.3/CHANGELOG.md)


## Getting help

For questions about the plugin, open a topic in the [Discuss](http://discuss.elastic.co) forums. For bugs or feature requests, open an issue in [Github](https://github.com/logstash-plugins/logstash-output-timber). For the list of Elastic supported plugins, please consult the [Elastic Support Matrix](https://www.elastic.co/support/matrix#matrix_logstash_plugins).

## Description

This output sends structured events to the [Timber.io logging service](https://timber.io). Timber is a cloud-based logging service designed for developers, providing easy features out of the box that make you more productive. [Tail users](https://timber.io/docs/app/console/tail-a-user), [trace requests](https://timber.io/docs/app/console/trace-http-requests), [inspect HTTP parameters](https://timber.io/docs/app/console/inspect-http-requests), and [search](https://timber.io/docs/app/console/searching) on rich structured data without sacrificing readability.
Internally, it’s a highly efficient HTTP transport that uses batching and retries for fast and reliable delivery.
This output will execute up to *pool_max* requests in parallel for performance. Consider this when tuning this plugin for performance. The default of 50 should be sufficient for most setups.
Additionally, note that when parallel execution is used strict ordering of events is not guaranteed!

## Timber Output Configuration Options

This plugin supports the following configuration options plus the [Common options](#plugins-outputs-timber-common-options) described later.

| Setting                                                                                   | Input type                                                                       | Required |
|-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|----------|
| [`api_key`](#plugins-outputs-timber-api_key)`api_key`                                     | Your Timber.io API key                                                           | No       |
| [`cacert`](#plugins-outputs-timber-cacert)`cacert`                                        | a valid filesystem path                                                          | No       |
| [`client_cert`](#plugins-outputs-timber-client_cert)`client_cert`                         | a valid filesystem path                                                          | No       |
| [`client_key`](#plugins-outputs-timber-client_key)`client_key`                            | a valid filesystem path                                                          | No       |
| [`connect_timeout`](#plugins-outputs-timber-connect_timeout)`connect_timeout`             | [number](/elastic/logstash-docs-md/tree/main/lsr/value-types#number)number       | No       |
| [`keystore`](#plugins-outputs-timber-keystore)`keystore`                                  | a valid filesystem path                                                          | No       |
| [`keystore_password`](#plugins-outputs-timber-keystore_password)`keystore_password`       | [password](/elastic/logstash-docs-md/tree/main/lsr/value-types#password)password | No       |
| [`keystore_type`](#plugins-outputs-timber-keystore_type)`keystore_type`                   | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string       | No       |
| [`pool_max`](#plugins-outputs-timber-pool_max)`pool_max`                                  | [number](/elastic/logstash-docs-md/tree/main/lsr/value-types#number)number       | No       |
| [`proxy`](#plugins-outputs-timber-proxy)`proxy`                                           | <<,>>                                                                            | No       |
| [`request_timeout`](#plugins-outputs-timber-request_timeout)`request_timeout`             | [number](/elastic/logstash-docs-md/tree/main/lsr/value-types#number)number       | No       |
| [`socket_timeout`](#plugins-outputs-timber-socket_timeout)`socket_timeout`                | [number](/elastic/logstash-docs-md/tree/main/lsr/value-types#number)number       | No       |
| [`truststore`](#plugins-outputs-timber-truststore)`truststore`                            | a valid filesystem path                                                          | No       |
| [`truststore_password`](#plugins-outputs-timber-truststore_password)`truststore_password` | [password](/elastic/logstash-docs-md/tree/main/lsr/value-types#password)password | No       |
| [`truststore_type`](#plugins-outputs-timber-truststore_type)`truststore_type`             | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string       | No       |

Also see [Common options](#plugins-outputs-timber-common-options) for a list of options supported by all output plugins.

### `api_key`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- There is no default value for this setting.

Your Timber.io API key. You can obtain your API by creating an app in the [Timber console](https://app.timber.io).

### `cacert`

- Value type is [path](/elastic/logstash-docs-md/tree/main/lsr/value-types#path)
- There is no default value for this setting.

If you need to use a custom X.509 CA (.pem certs) specify the path to that here.

### `client_cert`

- Value type is [path](/elastic/logstash-docs-md/tree/main/lsr/value-types#path)
- There is no default value for this setting.

If you’d like to use a client certificate (note, most people don’t want this) set the path to the x509 cert here

### `client_key`

- Value type is [path](/elastic/logstash-docs-md/tree/main/lsr/value-types#path)
- There is no default value for this setting.

If you’re using a client certificate specify the path to the encryption key here

### `connect_timeout`

- Value type is [number](/elastic/logstash-docs-md/tree/main/lsr/value-types#number)
- Default value is `10`

Timeout (in seconds) to wait for a connection to be established. Default is `10s`

### `keystore`

- Value type is [path](/elastic/logstash-docs-md/tree/main/lsr/value-types#path)
- There is no default value for this setting.

If you need to use a custom keystore (`.jks`) specify that here. This does not work with .pem keys!

### `keystore_password`

- Value type is [password](/elastic/logstash-docs-md/tree/main/lsr/value-types#password)
- There is no default value for this setting.

Specify the keystore password here. Note, most .jks files created with keytool require a password!

### `keystore_type`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- Default value is `"JKS"`

Specify the keystore type here. One of `JKS` or `PKCS12`. Default is `JKS`

### `pool_max`

- Value type is [number](/elastic/logstash-docs-md/tree/main/lsr/value-types#number)
- Default value is `50`

Max number of concurrent connections. Defaults to `50`

### `proxy`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- There is no default value for this setting.

If you’d like to use an HTTP proxy . This supports multiple configuration syntaxes:
1. Proxy host in form: `http://proxy.org:1234`
2. Proxy host in form: `{host => "proxy.org", port => 80, scheme => 'http', user => 'username@host', password => 'password'}`
3. Proxy host in form: `{url => 'http://proxy.org:1234', user => 'username@host', password => 'password'}`


### `request_timeout`

- Value type is [number](/elastic/logstash-docs-md/tree/main/lsr/value-types#number)
- Default value is `60`

This module makes it easy to add a very fully configured HTTP client to logstash based on [Manticore](https://github.com/cheald/manticore). For an example of its usage see  Timeout (in seconds) for the entire request

### `socket_timeout`

- Value type is [number](/elastic/logstash-docs-md/tree/main/lsr/value-types#number)
- Default value is `10`

Timeout (in seconds) to wait for data on the socket. Default is `10s`

### `ssl_certificate_validation`

- Value type is [boolean](/elastic/logstash-docs-md/tree/main/lsr/value-types#boolean)
- Default value is `true`

Set this to false to disable SSL/TLS certificate validation Note: setting this to false is generally considered insecure!

### `truststore`

- Value type is [path](/elastic/logstash-docs-md/tree/main/lsr/value-types#path)
- There is no default value for this setting.

If you need to use a custom truststore (`.jks`) specify that here. This does not work with .pem certs!

### `truststore_password`

- Value type is [password](/elastic/logstash-docs-md/tree/main/lsr/value-types#password)
- There is no default value for this setting.

Specify the truststore password here. Note, most .jks files created with keytool require a password!

### `truststore_type`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- Default value is `"JKS"`

Specify the truststore type here. One of `JKS` or `PKCS12`. Default is `JKS`

## Common options

These configuration options are supported by all output plugins:

| Setting                                                                 | Input type                                                                    | Required |
|-------------------------------------------------------------------------|-------------------------------------------------------------------------------|----------|
| [`codec`](#plugins-outputs-timber-codec)`codec`                         | [codec](/elastic/logstash-docs-md/tree/main/lsr/value-types#codec)codec       | No       |
| [`enable_metric`](#plugins-outputs-timber-enable_metric)`enable_metric` | [boolean](/elastic/logstash-docs-md/tree/main/lsr/value-types#boolean)boolean | No       |
| [`id`](#plugins-outputs-timber-id)`id`                                  | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string    | No       |


### `codec`

- Value type is [codec](/elastic/logstash-docs-md/tree/main/lsr/value-types#codec)
- Default value is `"plain"`

The codec used for output data. Output codecs are a convenient method for encoding your data before it leaves the output without needing a separate filter in your Logstash pipeline.

### `enable_metric`

- Value type is [boolean](/elastic/logstash-docs-md/tree/main/lsr/value-types#boolean)
- Default value is `true`

Disable or enable metric logging for this specific plugin instance. By default we record all the metrics we can, but you can disable metrics collection for a specific plugin.

### `id`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- There is no default value for this setting.

Add a unique `ID` to the plugin configuration. If no ID is specified, Logstash will generate one. It is strongly recommended to set this ID in your configuration. This is particularly useful when you have two or more plugins of the same type. For example, if you have 2 timber outputs. Adding a named ID in this case will help in monitoring Logstash when using the monitoring APIs.
```
output {
  timber {
    id => "my_plugin_id"
  }
}
```