fluent-plugin-logit 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3f7879a5cf64eda016ae3823da4ec5db482bca40
4
- data.tar.gz: 4af0f48b1225f7030f1b4ff647529af0dd517ca4
2
+ SHA256:
3
+ metadata.gz: 78c4c4ce59dc4b806f93e496225003e36edfda5bdea21eaf634390696653182d
4
+ data.tar.gz: e9a6cf80062c73fd922f7914227cb3bc45860c877f38ecb583c7a393083c54fd
5
5
  SHA512:
6
- metadata.gz: 3003441b8841cb5f50d3e7e5a143c65affcf65d9dd4f04c77cd2350754f87f90eaa7d8a0a9e0b923ce5998620eb811a707b4dd6a7b9c9f4c715ddff4cbae93d7
7
- data.tar.gz: 2e952ae1f7f6db311daf0caaef8b9bcd994eaef35d3878ca1f2ff08e1b69296b837577f14c6d2177d051e5c35012aab9fb8cd34b0f72d78a49455205e15b2b3f
6
+ metadata.gz: 416faa7684b294652716eb0dca134186057c9e9351b0b3ac3a846ff2be3404a785c3c1a1288b3cc66c1e7d64b237cff84371a3025d81f191b3af4e4e6fbd346e
7
+ data.tar.gz: 43896716fcd6270faedd0ef68d722f90f9bb15631f768dd528939c1237c77c37be694038f8864890988764b38bb93973dfda61cbcce2bf09f715ba3a2fdc537b
data/README.md CHANGED
@@ -13,7 +13,7 @@ This plugin is for Logit customers to send events securely to Logit.
13
13
  You need to configure the output with your stack_id and port number. See the source wizard for your configuration.
14
14
 
15
15
  <match **>
16
- type logit
16
+ @type logit
17
17
  stack_id <your-stack-id>
18
18
  port <your-port>
19
19
  buffer_type file
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.email = ["support@logit.io"]
8
8
  s.description = %q{Logit output plugin for Fluentd}
9
9
  s.summary = %q{Fluentd output plugin to store data with logit.io}
10
- s.homepage = "https://github.com/logit/fluent-plugin-logit"
10
+ s.homepage = "https://github.com/logit-io/fluent-plugin-logit"
11
11
  s.license = 'MIT'
12
12
 
13
13
  s.files = `git ls-files`.split($/)
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
16
16
  s.require_paths = ["lib"]
17
17
 
18
- s.add_runtime_dependency "fluentd", '~> 0.12.37', '<= 0.14.0'
18
+ s.add_runtime_dependency "fluentd", '>= 0.14.0', '< 2'
19
19
 
20
20
  s.add_development_dependency "rake"
21
21
  s.add_development_dependency "test-unit"
data/fluent.conf ADDED
@@ -0,0 +1,13 @@
1
+ <source>
2
+ @type forward
3
+ @id input1
4
+ port 24224
5
+ </source>
6
+
7
+ <match **>
8
+ @type logit
9
+ stack_id <stack_id>
10
+ port <ssl tcp port>
11
+ buffer_type file
12
+ buffer_path /var/log/fluent/logcentral
13
+ </match>
@@ -1,7 +1,10 @@
1
1
  # coding: utf-8
2
+
3
+ require 'fluent/output'
4
+
2
5
  module Fluent
3
6
  class LogitOutput < BufferedOutput
4
- Plugin.register_output('logit', self)
7
+ Fluent::Plugin.register_output('logit', self)
5
8
 
6
9
  def initialize
7
10
  super
@@ -0,0 +1,7 @@
1
+ FROM fluent/fluentd:latest
2
+ MAINTAINER Patrick McEvoy <pmcevoy@logit.io>
3
+
4
+ RUN gem install fluent-plugin-logit -v 0.1.0
5
+
6
+ # To allow the file buffer to work
7
+ RUN chmod 777 /tmp
@@ -0,0 +1,29 @@
1
+ # Start a fluentd server
2
+ # docker run --rm -it -e "FLUENTD_OPT=-vv" -p 24224:24224 -v (pwd):/fluentd/etc -e FLUENTD_CONF=fluent.conf logit/fluentd
3
+
4
+ # Generate example logs
5
+ # docker run --log-driver=fluentd --log-opt fluentd-address=localhost:24224 --log-opt tag=docker.{{.ID}} chentex/random-logger:latest
6
+
7
+ <source>
8
+ type forward
9
+ port 24224
10
+ bind 0.0.0.0
11
+ </source>
12
+
13
+ # if container stdout is json
14
+ #<filter docker.**>
15
+ # @type parser
16
+ # format json
17
+ # key_name log
18
+ # reserve_data true
19
+ #</filter>
20
+
21
+ <match docker.**>
22
+ type logit
23
+ stack_id your-stack-id
24
+ port your-tls-tls-port
25
+ # edit as required
26
+ buffer_type file
27
+ buffer_path /tmp/
28
+ flush_interval 2s
29
+ </match>
@@ -42,7 +42,7 @@ class TestTcpOutput < Test::Unit::TestCase
42
42
  end
43
43
  end
44
44
  end
45
- end
45
+ end
46
46
 
47
47
  def test_writes_to_default_index
48
48
  5.times.each do |t|
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-logit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-05 00:00:00.000000000 Z
11
+ date: 2019-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 0.12.37
20
- - - "<="
17
+ - - ">="
21
18
  - !ruby/object:Gem::Version
22
19
  version: 0.14.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: 0.12.37
30
- - - "<="
27
+ - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: 0.14.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -80,17 +80,19 @@ extensions: []
80
80
  extra_rdoc_files: []
81
81
  files:
82
82
  - ".gitignore"
83
- - ".travis.yml"
84
83
  - Gemfile
85
84
  - LICENSE
86
85
  - README.md
87
86
  - Rakefile
88
87
  - VERSION
89
88
  - fluent-plugin-logit.gemspec
89
+ - fluent.conf
90
90
  - lib/fluent/plugin/out_logit.rb
91
91
  - test/helper.rb
92
+ - test/integration/Dockerfile
93
+ - test/integration/fluent.conf
92
94
  - test/plugin/test_out_logit.rb
93
- homepage: https://github.com/logit/fluent-plugin-logit
95
+ homepage: https://github.com/logit-io/fluent-plugin-logit
94
96
  licenses:
95
97
  - MIT
96
98
  metadata: {}
@@ -109,11 +111,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
111
  - !ruby/object:Gem::Version
110
112
  version: '0'
111
113
  requirements: []
112
- rubyforge_project:
113
- rubygems_version: 2.6.12
114
+ rubygems_version: 3.0.3
114
115
  signing_key:
115
116
  specification_version: 4
116
117
  summary: Fluentd output plugin to store data with logit.io
117
118
  test_files:
118
119
  - test/helper.rb
120
+ - test/integration/Dockerfile
121
+ - test/integration/fluent.conf
119
122
  - test/plugin/test_out_logit.rb
data/.travis.yml DELETED
@@ -1,20 +0,0 @@
1
- language: ruby
2
- dist: trusty
3
- sudo: false
4
- rvm:
5
- - 2.3.3
6
- script: bundle exec rake
7
- before_install:
8
- - gem update bundler
9
- notifications:
10
- email:
11
- recipients:
12
- - pmcevoy@logit.io
13
- on_success: change
14
- on_failure: change
15
- deploy:
16
- provider: rubygems
17
- api_key:
18
- secure: jcELEdmihHz+DRfyphNzfFqlaBUp84ZFIOaWKfNBoFHu2STod5YOVWAqC97ebGSixWxkHzO8mdr1vMOQOA70mgmunL3IF3G43Z6VoJuN69HFCTbdtdPO0731Pt7ldKwz6q6LQCJ91/TUIw0Cg0Nn4LqRH6AR4cXs07pKOQKeV5cA7AZP2royUzP4UUEY5c+rS0X/ki0BW14Sn56gUQ/LIGJ1jIJyNLU7G5gM3pyAp86A8x3/kjBm/5ifVnYLcUulOjoNJcxXbVeQK7E9So988mDgvHfVMiKADaKJBsg8Hed+f/S2EjFf5QQ6ZclZiHxFmq/Cx8HTMyd0yrh+imS6dLHvy84G3tqE0rSkxHSPV4o8qCW3jjA8JPX7nwKavxgnuSD3iIJJlw2rRHK15kXWQ4oWtDN65khs//fxNEHaSrY/b1MHwTthkVYZ4PwY5EQ5xvH8uZAdzFm9meDd+HkoMXqfooOeQwyXe8gpLJhqDWU4q+ZGjE0huDm0VkZRRWYC/0rXal8FJd2n7Pa2IjjTOq1iYv0FxcJExKdko55bLDQzMRNMNTbyvEIpAUVw/aHXzG+fPQsSivNb7JN+W3qB1f4L50A+vxqUO0YIXkAZ4NpaBaQMAMLMceKqxXstNmtSCyLBJMjilPDhaKk20FCYDvKFMVrrqCsvgZHARRcdXnQ=
19
- on:
20
- tags: true