logstash-filter-aggregate 2.1.1 → 2.1.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: adf79052e26c1e6eeabb0088a906057312030eb3
4
- data.tar.gz: ee5b2fd034f84cbd2f047bd225b0d7eaec326269
3
+ metadata.gz: f880dab9eca9eca31f5634938e973fd0bc7d739b
4
+ data.tar.gz: e2f233c165cd6f944c7f0cc63968e2bb6428f694
5
5
  SHA512:
6
- metadata.gz: 9681cea6e04bad9b87c355480a42a09570f1d335f90cab5e3d92a39d783e2a14387414180f2561f17efeb300ac83cc8836d78426607dea64565790094a8df1f8
7
- data.tar.gz: bbee958fccf8e6973b666941b7d035744d4416973d290bfb2e7d4d439b785643902d1199b6f18acee82874a1e2ccd9bfd0e0a0034eb2268512d9871c2478ff7e
6
+ metadata.gz: 8cbf67652af3eaf6547302b701a6aec844e7ca1a82b722a83ca048724a3ce252e1e5ed2bbf5c2fee8533f8fd1ab387791e7b7749fed33a6f745c5650bc57632e
7
+ data.tar.gz: ec57ad6ef531427c1c43800340f8352b44d954aba39bf3f786bf315a7f843458f8252f846f60b4c2c9312c0e94293bc2ec47aad0ad5088b291326083cd00ab76
@@ -1,3 +1,6 @@
1
+ ## 2.1.2
2
+ - bugfix: clarify default timeout behaviour : by default, timeout is 1800s
3
+
1
4
  ## 2.1.1
2
5
  - bugfix: when "aggregate_maps_path" option is defined in more than one aggregate filter, raise a Logstash::ConfigurationError
3
6
  - bugfix: add support for logstash hot reload feature
data/README.md CHANGED
@@ -148,7 +148,7 @@ Default value: `false`
148
148
  - **timeout:**
149
149
  The amount of seconds after a task "end event" can be considered lost.
150
150
  When timeout occurs for a task, The task "map" is evicted.
151
- The default value is 0, which means no timeout so no auto eviction.
151
+ If no timeout is defined, default timeout will be applied : 1800 seconds.
152
152
 
153
153
  - **aggregate_maps_path:**
154
154
  The path to file where aggregate maps are stored when logstash stops and are loaded from when logstash starts.
@@ -166,8 +166,8 @@ class LogStash::Filters::Aggregate < LogStash::Filters::Base
166
166
  #
167
167
  # When timeout occurs for a task, The task "map" is evicted.
168
168
  #
169
- # Default value (`0`) means no timeout so no auto eviction.
170
- config :timeout, :validate => :number, :required => false, :default => 0
169
+ # If no timeout is defined, default timeout will be applied : 1800 seconds.
170
+ config :timeout, :validate => :number, :required => false
171
171
 
172
172
  # The path to file where aggregate maps are stored when logstash stops
173
173
  # and are loaded from when logstash starts.
@@ -207,7 +207,7 @@ class LogStash::Filters::Aggregate < LogStash::Filters::Base
207
207
 
208
208
  @@mutex.synchronize do
209
209
  # define eviction_instance
210
- if (@timeout > 0 && (@@eviction_instance.nil? || @timeout < @@eviction_instance.timeout))
210
+ if (!@timeout.nil? && (@@eviction_instance.nil? || @timeout < @@eviction_instance.timeout))
211
211
  @@eviction_instance = self
212
212
  @logger.info("Aggregate, timeout: #{@timeout} seconds")
213
213
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-aggregate'
3
- s.version = '2.1.1'
3
+ s.version = '2.1.2'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "The aim of this filter is to aggregate information available among several events (typically log lines) belonging to a same task, and finally push aggregated information into final task event."
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/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-aggregate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-07 00:00:00.000000000 Z
12
+ date: 2016-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement