fluent-plugin-timber 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +11 -0
- data/README.md +20 -2
- data/fluent-plugin-timber.gemspec +1 -1
- data/lib/fluent/plugin/out_timber.rb +2 -2
- data/spec/fluent/plugin/out_timber_spec.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44b8ee267100fb87a1db9fa3937a26da452bc0f8
|
4
|
+
data.tar.gz: 8776259a74b9ca2c1c05e2c7abb0c3710748ade0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '02820d632dc32d924a557f8be3b647c72ca8c1646602998305ed3b24bd7ed108a7489090c0f202b033c32f1635bf2761e06e71a1f14a0cd7b88e59ebe8734edb'
|
7
|
+
data.tar.gz: 982bff76269b31ee9f25b8322b608691534113a9ca6f0a0e0db3a09479b22c0c9351637aa5f49eb14ba4ab71bccf0f0870ec9cc18599b72dc22f1eb8cb765211
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Fluent::Plugin::Timber, a plugin for [Fluentd](http://fluentd.org)
|
1
|
+
# 🌲 Fluent::Plugin::Timber, a plugin for [Fluentd](http://fluentd.org)
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/fluent-plugin-timber.png)](http://badge.fury.io/rb/fluent-plugin-timber)
|
4
4
|
[![Build Status](https://travis-ci.org/timberio/fluent-plugin-timber.png?branch=master)](https://travis-ci.org/timberio/fluent-plugin-timber)
|
@@ -9,9 +9,19 @@ A highly efficient Fluentd plugin that delivers events to the [Timber.io logging
|
|
9
9
|
|
10
10
|
[Timber.io](https://timber.io) is a different kind of logging service with a focus on modern logging best-practices: easy setup, structured data, fast clean usable interface, 6 months of searchable retention, threshold based alerts, simple graphing, and more. Learn more at [https://timber.io](https://timber.io).
|
11
11
|
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
```
|
15
|
+
gem install fluent-plugin-timber
|
16
|
+
```
|
17
|
+
|
18
|
+
## Usage
|
19
|
+
|
20
|
+
In your Fluentd configuration, use @type timber:
|
21
|
+
|
12
22
|
```
|
13
23
|
<match your_match>
|
14
|
-
type timber
|
24
|
+
@type timber
|
15
25
|
api_key xxxxxxxxxxxxxxxxxxxxxxxxxxx # Your Timber API (required)
|
16
26
|
hostname "#{Socket.gethostname}" # Your hostname (required)
|
17
27
|
# ip 127.0.0.1 # IP address (optional)
|
@@ -20,6 +30,14 @@ A highly efficient Fluentd plugin that delivers events to the [Timber.io logging
|
|
20
30
|
</match>
|
21
31
|
```
|
22
32
|
|
33
|
+
## Configuration
|
34
|
+
|
35
|
+
* `api_key` - This is your Timber API key. You can obtain your key by creating an app in the [Timber console](https://app.timber.io). Registration is one click. If you already have an app, you can locate your API in your app's settings. [See our API key docs](https://timber.io/docs/app/advanced/api-keys/).
|
36
|
+
* `hostname` - This adds `hostname` as context to your logs, making it easy to filter by hostname in the [Timber console](https://app.timber.io).
|
37
|
+
* `ip` - This adds `ip` as context to your logs, making it easy to filter by IP address in the [Timber console](https://app.timber.io).
|
38
|
+
|
23
39
|
For advanced configuration options, please see to the [buffered output parameters documentation.](http://docs.fluentd.org/articles/output-plugin-overview#buffered-output-parameters).
|
24
40
|
|
41
|
+
---
|
42
|
+
|
25
43
|
Questions? Need help? [support@timber.io](mailto:support@timber.io).
|
@@ -3,7 +3,7 @@ require 'date'
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'fluent-plugin-timber'
|
6
|
-
s.version = '1.0.
|
6
|
+
s.version = '1.0.1'
|
7
7
|
s.date = Date.today.to_s
|
8
8
|
s.summary = 'Timber.io plugin for Fluentd'
|
9
9
|
s.description = 'Streams Fluentd logs to the Timber.io logging service.'
|
@@ -7,8 +7,8 @@ module Fluent
|
|
7
7
|
class TimberOutput < Fluent::BufferedOutput
|
8
8
|
Fluent::Plugin.register_output('timber', self)
|
9
9
|
|
10
|
-
VERSION = "1.0.
|
11
|
-
CONTENT_TYPE = "application/
|
10
|
+
VERSION = "1.0.1".freeze
|
11
|
+
CONTENT_TYPE = "application/msgpack".freeze
|
12
12
|
HOST = "https://logs.timber.io".freeze
|
13
13
|
MAX_ATTEMPTS = 3.freeze
|
14
14
|
PATH = "/frames".freeze
|
@@ -33,7 +33,7 @@ describe Fluent::TimberOutput do
|
|
33
33
|
stub = stub_request(:post, "https://logs.timber.io/frames").
|
34
34
|
with(
|
35
35
|
:body => start_with("\x85\xA3age\x1A\xAArequest_id\xA242\xA9parent_id\xA6parent\xAArouting_id\xA7routing\xA2dt\xB4".force_encoding("ASCII-8BIT")),
|
36
|
-
:headers => {'Authorization'=>'Basic YWJjZDEyMzQ=', 'Connection'=>'Keep-Alive', 'Content-Type'=>'application/
|
36
|
+
:headers => {'Authorization'=>'Basic YWJjZDEyMzQ=', 'Connection'=>'Keep-Alive', 'Content-Type'=>'application/msgpack', 'User-Agent'=>'Timber Logstash/1.0.0'}
|
37
37
|
).
|
38
38
|
to_return(:status => 200, :body => "", :headers => {})
|
39
39
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-timber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timber.io
|
@@ -99,6 +99,7 @@ extensions: []
|
|
99
99
|
extra_rdoc_files: []
|
100
100
|
files:
|
101
101
|
- ".gitignore"
|
102
|
+
- ".travis.yml"
|
102
103
|
- Gemfile
|
103
104
|
- Gemfile.lock
|
104
105
|
- LICENSE.md
|