logstash-output-logentries 0.1.1 → 0.1.2

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
2
  SHA1:
3
- metadata.gz: 5086804beaa855586464d390ca6e7af76348fb94
4
- data.tar.gz: 09421ee2459c70d2d6ee91b859ca133ee9c57d46
3
+ metadata.gz: d3071f23479728c44aebb9426d301150f352f183
4
+ data.tar.gz: 57fea8cda18e056dbfad29cecfbbbf99d230710a
5
5
  SHA512:
6
- metadata.gz: 870e20afeeae176399870e2aae5ade8b77c7e221a2807f51cbc3d9ff23fcec3219a365935ca9384fef901637f851334a19a38c08282dec82f021c707ab6c9ea2
7
- data.tar.gz: 97d987a0cf8e0d60a54b03990cda7598a22251d020b0b7f9c2ab69bb53305e466da787b8cd7e9478cb4169be2f45211ed2e2c1977b7defc83b2f01f69a86cf2e
6
+ metadata.gz: 498b97cffe5f047666707a1a44c4e7d35483e509465dfda8684d0114a99bd510277167de3748342816388abe6203ad7f2b2b80e9b01551005ee7896bf7efea7d
7
+ data.tar.gz: 4f1e3bafb4ef7979a5c6bb5997825fecc6f9d9182b8e5c6e5f393a60419076d49f582f5f840daf8508678fc29eecb62a912d1778c2ccb4d5ac16830339b7dd3a
@@ -53,7 +53,16 @@ class LogStash::Outputs::Logentries < LogStash::Outputs::Base
53
53
 
54
54
  #Prepend the message body with "event" to allow the js.logentries to pick it up
55
55
  request.body = "{\"event\":" + event.to_json + "}"
56
- response = http.request(request)
56
+ begin
57
+ response = http.request(request)
58
+ if response.is_a?(Net::HTTPSuccess)
59
+ @logger.info("Event Sent!")
60
+ else
61
+ @logger.warn("HTTP error", :error => response.error!)
62
+ end
63
+ rescue Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError => e
64
+ @logger.warn("Error", e)
65
+ end
57
66
 
58
67
  if response.is_a?(Net::HTTPSuccess)
59
68
  @logger.info("Event Sent!")
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-logentries'
4
- s.version = '0.1.1'
4
+ s.version = '0.1.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "You can forward logs from Logstash to Logentries using unique token."
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-logentries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logentries - Bart Siniarski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: logstash-devutils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: This gem is a logstash plugin required to be installed on top of the
@@ -46,7 +46,7 @@ executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
- - .bundle/config
49
+ - ".bundle/config"
50
50
  - CONTRIBUTORS
51
51
  - DEVELOPER.md
52
52
  - Gemfile
@@ -68,17 +68,17 @@ require_paths:
68
68
  - lib
69
69
  required_ruby_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - '>='
76
+ - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.4.8
81
+ rubygems_version: 2.4.6
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: You can forward logs from Logstash to Logentries using unique token.