logstash-filter-elapsed 4.0.4 → 4.0.5

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
  SHA256:
3
- metadata.gz: 2fa558c0558343f8ddb11a20eb0c654e10f0b790841b0de8c84122ec9befd1e9
4
- data.tar.gz: 975149f7b9488dc8c4c8974df4211220990f512aa41a67f5cc59a8ad86a8699b
3
+ metadata.gz: 8a2997511503e4d774b26b3cd72f5765ed6eb9777ee0ebb3a1345bd0cb6fae2d
4
+ data.tar.gz: 53b192a354c291a14d7b7f5e4a7ebd314bdd50e2a9ef5ed379478deee2206683
5
5
  SHA512:
6
- metadata.gz: b3fb6b2f18355a0c2d82cd431b0ae56e55cf7e8616635bdeaf79143b6d1665c9b165dffe96a20941250725867c2c1e61b5da5dae4399a624d99ce5939e115d89
7
- data.tar.gz: f35d4c300f82016a81bc8e121b7c794df2ad5405841fc598306b9dfdaa474ad0863efdb4b5b91e117c5876ca49e40c2c1c1b32df9a14d2e632f06cf49549997e
6
+ metadata.gz: fdae5d89068375553ea71238defaac1795c982ab79596f0eb055363ae06dc3e7e1f07c2a885e05793d22160f6a95fc8097e6ac3a3aa90326ab4a3d82576a2aa6
7
+ data.tar.gz: 7376e6411716eb35f9d10f819e078793c048f2bca8b74a97294f7798e81f4728b45f3dd17e6b7474f002f8698bae8f58558cfdc0e2e9a0abc94bbfed2f0c53a0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 4.0.5
2
+ - Fixed default to true for the periodic_flush option in order for the caching expiration to work [#36](https://github.com/logstash-plugins/logstash-filter-elapsed/pull/36)
3
+
1
4
  ## 4.0.4
2
5
  - Update gemspec summary
3
6
 
data/CONTRIBUTORS CHANGED
@@ -9,6 +9,7 @@ Contributors:
9
9
  * Suyog Rao (suyograo)
10
10
  * karsaroth
11
11
  * Pere Urbón (purbon)
12
+ * Colin Surprenant (colinsurprenant)
12
13
 
13
14
  Note: If you've sent us patches, bug reports, or otherwise contributed to
14
15
  Logstash, and you aren't on the list above and want to be, please let us know
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012-2018 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
@@ -109,6 +109,10 @@ class LogStash::Filters::Elapsed < LogStash::Filters::Base
109
109
  # to the "end event"; if it's set to `true` a new "match event" is created.
110
110
  config :new_event_on_match, :validate => :boolean, :required => false, :default => false
111
111
 
112
+ # This filter must have its flush function called periodically to be able to purge
113
+ # expired stored start events.
114
+ config :periodic_flush, :validate => :boolean, :default => true
115
+
112
116
  public
113
117
  def register
114
118
  @mutex = Mutex.new
@@ -132,7 +136,7 @@ class LogStash::Filters::Elapsed < LogStash::Filters::Base
132
136
 
133
137
  if(start_event?(event))
134
138
  filter_matched(event)
135
- @logger.info("Elapsed, 'start event' received", start_tag: @start_tag, unique_id_field: @unique_id_field)
139
+ @logger.debug("Elapsed, 'start event' received", start_tag: @start_tag, unique_id_field: @unique_id_field)
136
140
 
137
141
  @mutex.synchronize do
138
142
  unless(@start_events.has_key?(unique_id))
@@ -142,7 +146,7 @@ class LogStash::Filters::Elapsed < LogStash::Filters::Base
142
146
 
143
147
  elsif(end_event?(event))
144
148
  filter_matched(event)
145
- @logger.info("Elapsed, 'end event' received", end_tag: @end_tag, unique_id_field: @unique_id_field)
149
+ @logger.debug("Elapsed, 'end event' received", end_tag: @end_tag, unique_id_field: @unique_id_field)
146
150
 
147
151
  @mutex.lock
148
152
  if(@start_events.has_key?(unique_id))
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-elapsed'
4
- s.version = '4.0.4'
4
+ s.version = '4.0.5'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Calculates the elapsed time between a pair of events"
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/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-elapsed
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 4.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-13 00:00:00.000000000 Z
11
+ date: 2018-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.6.11
87
+ rubygems_version: 2.6.13
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Calculates the elapsed time between a pair of events