fluent-plugin-logzio 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d9e0961a29f8c6ca7bae70c7b78db209e54b942
4
- data.tar.gz: eae84e948319346fff4f861496e969787e3b34e9
3
+ metadata.gz: 9b08abc0afeca64ce628022357df1198fb8218e8
4
+ data.tar.gz: 6cd5d3f45ee4230d1f6111fbe941906163d1c437
5
5
  SHA512:
6
- metadata.gz: 334047ddd4b9dfae8e62586c8cc81735e3f3a1db1eca1435b9ede750970ff447d376f7d11371ccdc76638b8de3240724d624a42d2e00b43fb405d58a67ca59cb
7
- data.tar.gz: bbe2693e8158c6b4d4f774c870d8fc642a8a9a687fa54253fbcfff8a1b15be71a5ad2723dd81b5a4d18c2946c4958ca7a9ff93184d53287767dbf4853b87a325
6
+ metadata.gz: 3068e9465b0ffc145f77f17d6a103a68340118daec626ae320546cc03755dfc9fb2a89c89ed23159245e4c9f4efec5868c97510364aef1db42db24c010483f1e
7
+ data.tar.gz: 8fa4c5ae70b7c1756262d1d2a4f22252498ffa19b9a206bf98b344ec10c920013c7654e3ef97a5795a3699ba81f8bc5f1ae9df8fdb3e1033126c9c79e8f17925
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  *.gem
2
2
  .bundle
3
3
  *.swp
4
+ Gemfile.lock
data/README.md CHANGED
@@ -1,2 +1,33 @@
1
- # fluent-plugin-logzio
2
- new
1
+ Logz.io plugin for [Fluentd](http://www.fluentd.org)
2
+ =============
3
+ With fluent-plugin-logzio you will be able to use [Logz.io](http://logz.io) as output the logs you collect with Fluentd.
4
+
5
+ ## Getting Started
6
+ * Install [Fluentd](http://www.fluentd.org/download)
7
+ * gem install fluent-plugin-logzio
8
+ * Make sure you have an account with Logz.io.
9
+ * Configure Fluentd as below:
10
+ ~~~~
11
+ <match your_match>
12
+ type logzio
13
+ endpoint_url http://listener.logz.io:8090?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
14
+ </match>
15
+ ~~~~
16
+ or if you want to use buffered plugin:
17
+ ~~~~
18
+ <match your_match>
19
+ type logzio_buffered
20
+ endpoint_url http://listener.logz.io:8090?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
21
+ output_include_time true # add 'timestamp' record into log. (default: true)
22
+ buffer_type file
23
+ buffer_path /path/to/buffer/file
24
+ flush_interval 10s
25
+ </match>
26
+ ~~~~
27
+
28
+ Note that buffered plugin uses bulk import to improve performance, so make sure to set Bulk endpoint to endpoint_url.
29
+
30
+ The `xxx-xxxx...` is your Logz.io access token.
31
+
32
+ ## Parameters
33
+ **endpoint_url** the url to your Logz.io input (string).
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'fluent-plugin-logzio'
7
- s.version = '0.0.1'
7
+ s.version = '0.0.2'
8
8
  s.authors = ['Yury Kotov']
9
9
  s.email = ['bairkan@gmail.com']
10
10
  s.homepage = 'https://github.com/logzio/fluent-plugin-logzio'
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_dependency 'net-http-persistent', '~> 2.7'
22
22
  s.add_dependency 'fluentd', '~> 0.12'
23
23
  s.add_development_dependency 'rake', '~> 10.4'
24
- s.add_development_dependency 'bundler', '~> 0'
24
+ s.add_development_dependency 'bundler', '~> 1.10'
25
25
  s.add_development_dependency 'rspec', '~> 3.3'
26
26
  s.add_development_dependency 'test-unit', '~> 3.1'
27
27
  end
@@ -20,15 +20,13 @@ describe 'Fluent::LogzioOutputBuffered' do
20
20
  end
21
21
 
22
22
  it 'adds messages to the buffer' do
23
- d = driver
23
+ driver.emit(record1, time)
24
+ driver.emit(record2, time)
24
25
 
25
- d.emit(record1, time)
26
- d.emit(record2, time)
26
+ driver.expect_format ['test', 0, { 'field1' => 50, 'otherfield' => 99 }].to_msgpack
27
+ driver.expect_format ['test', 0, { 'field1' => 150, 'otherfield' => 199 }].to_msgpack
27
28
 
28
- d.expect_format ['test', 0, { 'field1' => 50, 'otherfield' => 99 }].to_msgpack
29
- d.expect_format ['test', 0, { 'field1' => 150, 'otherfield' => 199 }].to_msgpack
30
-
31
- d.run
29
+ driver.run
32
30
  end
33
31
  end
34
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-logzio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Kotov
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '1.10'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '1.10'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -104,7 +104,6 @@ files:
104
104
  - ".gitignore"
105
105
  - ".rspec"
106
106
  - Gemfile
107
- - Gemfile.lock
108
107
  - LICENSE
109
108
  - README.md
110
109
  - Rakefile
@@ -1,64 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- fluent-plugin-logzio (0.0.1)
5
- fluentd
6
- net-http-persistent (>= 2.7)
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- cool.io (1.3.1)
12
- diff-lcs (1.2.5)
13
- fluentd (0.12.15)
14
- cool.io (>= 1.2.2, < 2.0.0)
15
- http_parser.rb (>= 0.5.1, < 0.7.0)
16
- json (>= 1.4.3)
17
- msgpack (>= 0.5.11, < 0.6.0)
18
- sigdump (~> 0.2.2)
19
- string-scrub (>= 0.0.3)
20
- tzinfo (>= 1.0.0)
21
- tzinfo-data (>= 1.0.0)
22
- yajl-ruby (~> 1.0)
23
- http_parser.rb (0.6.0)
24
- json (1.8.3)
25
- msgpack (0.5.12)
26
- net-http-persistent (2.9.4)
27
- power_assert (0.2.4)
28
- rake (10.4.2)
29
- rspec (3.3.0)
30
- rspec-core (~> 3.3.0)
31
- rspec-expectations (~> 3.3.0)
32
- rspec-mocks (~> 3.3.0)
33
- rspec-core (3.3.2)
34
- rspec-support (~> 3.3.0)
35
- rspec-expectations (3.3.1)
36
- diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.3.0)
38
- rspec-mocks (3.3.2)
39
- diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.3.0)
41
- rspec-support (3.3.0)
42
- sigdump (0.2.3)
43
- string-scrub (0.0.5)
44
- test-unit (3.1.3)
45
- power_assert
46
- thread_safe (0.3.5)
47
- tzinfo (1.2.2)
48
- thread_safe (~> 0.1)
49
- tzinfo-data (1.2015.5)
50
- tzinfo (>= 1.0.0)
51
- yajl-ruby (1.2.1)
52
-
53
- PLATFORMS
54
- ruby
55
-
56
- DEPENDENCIES
57
- bundler
58
- fluent-plugin-logzio!
59
- rake
60
- rspec
61
- test-unit
62
-
63
- BUNDLED WITH
64
- 1.10.5