fluent-plugin-loggly 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0bc6c93d59f289bd6d0f2995ed160d30d8444af0
4
+ data.tar.gz: bbbddb11e58da89bdd912a47283a38d1ded83caf
5
+ SHA512:
6
+ metadata.gz: f500e68be3368b70edaa36ea8d52427ece0d9ea56fadbfb6b7432e0e8101655292e65f93a09b854705f245863cf927781a33f6393087e981bc0cd6250ded1551
7
+ data.tar.gz: 38a469fcd242a19a2904162dda1c367e6cf2eca1fba80f5b4f9e2a9914ec51bcf352677f98f5e335a8531e362bfe085037619ecc3a076324ae3ebd4b77b0bb24
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-loggly"
6
- s.version = "0.0.1"
6
+ s.version = "0.0.2"
7
7
  s.authors = ["Patrik Antonsson"]
8
8
  s.email = ["patant@gmail.com"]
9
9
  s.homepage = "https://github.com/patant/fluent-plugin-loggly"
@@ -36,7 +36,6 @@ class LogglyOutput < Fluent::Output
36
36
  @uri = URI @loggly_url
37
37
  @http = Net::HTTP::Persistent.new 'fluentd-plugin-loggly'
38
38
  @http.headers['Content-Type'] = 'application/json'
39
- @post = Net::HTTP::Post.new @uri.path
40
39
  end
41
40
 
42
41
  def shutdown
@@ -48,11 +47,12 @@ class LogglyOutput < Fluent::Output
48
47
  es.each {|time,record|
49
48
  record_json = record.to_json
50
49
  $log.debug "Record sent #{record_json}"
51
- @post.body = record_json
50
+ post = Net::HTTP::Post.new @uri.path
51
+ post.body = record_json
52
52
  begin
53
- response = @http.request @uri, @post
53
+ response = @http.request @uri, post
54
54
  $log.debug "HTTP Response code #{response.code}"
55
- $log.error response.message if response.code != "200"
55
+ $log.error response.body if response.code != "200"
56
56
  rescue
57
57
  $log.error "Error connecting to loggly verify the url #{@loggly_url}"
58
58
  end
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Loggly
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-loggly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Patrik Antonsson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-08 00:00:00.000000000 Z
11
+ date: 2014-01-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: net-http-persistent
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '2.7'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '2.7'
30
27
  description: Fluentd pluging (fluentd.org) for output to loggly (loggly.com)
@@ -45,26 +42,25 @@ files:
45
42
  - lib/fluent/plugin/out_loggly.rb
46
43
  homepage: https://github.com/patant/fluent-plugin-loggly
47
44
  licenses: []
45
+ metadata: {}
48
46
  post_install_message:
49
47
  rdoc_options: []
50
48
  require_paths:
51
49
  - lib
52
50
  required_ruby_version: !ruby/object:Gem::Requirement
53
- none: false
54
51
  requirements:
55
52
  - - ~>
56
53
  - !ruby/object:Gem::Version
57
54
  version: 1.9.2
58
55
  required_rubygems_version: !ruby/object:Gem::Requirement
59
- none: false
60
56
  requirements:
61
- - - ! '>='
57
+ - - '>='
62
58
  - !ruby/object:Gem::Version
63
59
  version: '0'
64
60
  requirements: []
65
61
  rubyforge_project: fluent-plugin-loggly
66
- rubygems_version: 1.8.24
62
+ rubygems_version: 2.1.11
67
63
  signing_key:
68
- specification_version: 3
64
+ specification_version: 4
69
65
  summary: Fluentd plugin for output to loggly
70
66
  test_files: []