logstash-output-mqtt 1.2.0 → 1.2.1

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
  SHA256:
3
- metadata.gz: 6466f5b821ccadda609280f2b3fa5f8db9db834a67a09b3687504058233c391a
4
- data.tar.gz: eadd6cde4e746c043b2ca6fc400ff98f08181cbdf1c930dc2580cc594cb3c99d
3
+ metadata.gz: 69b541cd6a2abd62541b3500c13cafdd67c2ea83270fcdfbbcc923dee527a0d9
4
+ data.tar.gz: e1696a7ecffef182fac7aff34e57def48983ba8dc064ba7504ddb61ef2a5db31
5
5
  SHA512:
6
- metadata.gz: 3fdd61209f6761f2c06459d2099632472b68880a836224315634b5789fb2334c1955df195c461d2f1285b60d3990b7813a607abc1b7100143ee76d6a37bfeee4
7
- data.tar.gz: 7ad0be8ab0e16a818673cc4622778fb4b9e88481f5a0e949092fdb4d7428c52b805a00806b892c4f35304c5555edecd02b3c5e6576278989b1e4610d3db4152c
6
+ metadata.gz: 3f19c42ebcad7d7d0f80788ab2509396d2a4602b7f7cb344b195124a702acdd12c37ded9986d09d003c54fd69d9ee1fa7784282e674c3149f28441cb6ddf8dca
7
+ data.tar.gz: 4f7d48105f283f95705e0d127a79739a7f625928762404c11d3374e23e6b316fb85e316cf3cdb222d5be2b0df462be9c9761ada9c0453d8a4311f36856ce30db
data/Gemfile CHANGED
@@ -1,3 +1,10 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
+ logstash_path = ENV["LOGSTASH_PATH"] || "/usr/share/logstash"
5
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
6
+
7
+ if Dir.exist?(logstash_path) && use_logstash_source
8
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
9
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
10
+ end
@@ -102,6 +102,11 @@ class LogStash::Outputs::MQTT < LogStash::Outputs::Base
102
102
  # Time in seconds to wait before retrying a connection
103
103
  config :connect_retry_interval, :validate => :number, :default => 10
104
104
 
105
+ # Time Keep alive connexion between ping to remote servers
106
+ config :keep_alive, :validate => :number, :default => 15
107
+
108
+
109
+
105
110
  def register
106
111
  @options = {
107
112
  :host => @host
@@ -130,6 +135,9 @@ class LogStash::Outputs::MQTT < LogStash::Outputs::Base
130
135
  if @ca_file
131
136
  @options[:ca_file] = @ca_file
132
137
  end
138
+ if @keep_alive
139
+ @options[:keep_alive] = @keep_alive
140
+ end
133
141
 
134
142
  # Encode events using the given codec
135
143
  # Use an array as a buffer so the multi_receive can handle multiple events with a single connection
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-mqtt'
3
- s.version = "1.2.0"
3
+ s.version = "1.2.1"
4
4
  s.licenses = ["Apache-2.0"]
5
5
  s.summary = "This is Logstash output plugin for the http://mqtt.org/[MQTT] protocol"
6
6
  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"
@@ -19,10 +19,9 @@ Gem::Specification.new do |s|
19
19
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
20
20
 
21
21
  # Gem dependencies
22
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
22
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
23
23
  s.add_runtime_dependency "logstash-codec-json"
24
24
  s.add_runtime_dependency "mqtt"
25
25
 
26
- # 1.3.5 version has some problems, stick to 1.3.4 by now
27
- s.add_development_dependency "logstash-devutils", "< 1.3.6"
26
+ s.add_development_dependency "logstash-devutils"
28
27
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-mqtt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommi Palomäki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-09 00:00:00.000000000 Z
11
+ date: 2023-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '1.60'
19
+ - - "<="
17
20
  - !ruby/object:Gem::Version
18
- version: '2.0'
21
+ version: '2.99'
19
22
  name: logstash-core-plugin-api
20
- prerelease: false
21
23
  type: :runtime
24
+ prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.60'
30
+ - - "<="
25
31
  - !ruby/object:Gem::Version
26
- version: '2.0'
32
+ version: '2.99'
27
33
  - !ruby/object:Gem::Dependency
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
@@ -31,8 +37,8 @@ dependencies:
31
37
  - !ruby/object:Gem::Version
32
38
  version: '0'
33
39
  name: logstash-codec-json
34
- prerelease: false
35
40
  type: :runtime
41
+ prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - ">="
@@ -45,8 +51,8 @@ dependencies:
45
51
  - !ruby/object:Gem::Version
46
52
  version: '0'
47
53
  name: mqtt
48
- prerelease: false
49
54
  type: :runtime
55
+ prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - ">="
@@ -55,17 +61,17 @@ dependencies:
55
61
  - !ruby/object:Gem::Dependency
56
62
  requirement: !ruby/object:Gem::Requirement
57
63
  requirements:
58
- - - "<"
64
+ - - ">="
59
65
  - !ruby/object:Gem::Version
60
- version: 1.3.6
66
+ version: '0'
61
67
  name: logstash-devutils
62
- prerelease: false
63
68
  type: :development
69
+ prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - "<"
72
+ - - ">="
67
73
  - !ruby/object:Gem::Version
68
- version: 1.3.6
74
+ version: '0'
69
75
  description: This gem is a logstash plugin required to be installed on top of the
70
76
  Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not
71
77
  a stand-alone program
@@ -104,8 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
110
  - !ruby/object:Gem::Version
105
111
  version: '0'
106
112
  requirements: []
107
- rubyforge_project:
108
- rubygems_version: 2.7.6
113
+ rubygems_version: 3.2.33
109
114
  signing_key:
110
115
  specification_version: 4
111
116
  summary: This is Logstash output plugin for the http://mqtt.org/[MQTT] protocol