Logstash

Last updated 18 days ago

Send logs to Timber from Logstash

Logstash is a general purpose log forwarders that can forward logs to your Timber account.

If given the choice, we recommend Fluent Bit for it's superior performance and flexibility.

Installation

  1. Install Logstash for your platform.

  2. Configure the appropriate input plugins.

  3. Configure the http output plugin to send data to Timber, replacing YOUR_API_KEY and YOUR_SOURCE_ID appropriately:

    output {
    http {
    url => "https://logs.timber.io/sources/YOUR_SOURCE_ID/frames"
    http_method => "post"
    headers => {
    "Authorization" => "Bearer YOUR_API_KEY"
    }
    format => "json"
    workers => 10
    }
    }