logstash-codec-multiline 3.0.5 → 3.0.6

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: 0b83041012aa7d4c15fe3b86d61f5b626d1b71ff
4
- data.tar.gz: 33fd5598cc32b5f1ea942593def59627757abc0a
3
+ metadata.gz: dc1680434a0e808dd233a427832c392795d9b1af
4
+ data.tar.gz: 73557f62bb9d53c5a18045564d1f68fa336e9cac
5
5
  SHA512:
6
- metadata.gz: fe261395e4de7c05f9694647e5bf5fdfa3da3b863b3034101beafa730560ce8f6c93b3cf10a4307381ef7b29acbb0021a88fcfe41cec2e541164d41526c3c850
7
- data.tar.gz: db6015c51acade7a6d185393377124c7a58948e1381372bb36e2804e99f135321f7a7881810a2aeb8f7c4587d1b502a68785278dc2e98cf725516ae1dfaa92a6
6
+ metadata.gz: a6d27917a1fe86c412a4baf878d93fe09cbd98b2ee2a3891bc554b7564ef872e87f9c9381c6b9cd29a5d4fb157884dfa426704a6e191b0e4997c3c998e4ca85f
7
+ data.tar.gz: c92c4b2bc23af5dd8f2cb958b3d4360f0bb3641ae058135534c4a40b16b02c208b14a9fbb81a70b46e35019d02497086080ec7bf01cec2c21850dcc0b034e305
@@ -1,3 +1,6 @@
1
+ ## 3.0.6
2
+ - Fix debug output for grok match
3
+
1
4
  ## 3.0.3
2
5
  - Docs: Add note indicating that the multiline codec should not be used with input plugins that support multiple hosts
3
6
 
@@ -12,7 +12,7 @@ START - GENERATED VARIABLES, DO NOT EDIT!
12
12
  END - GENERATED VARIABLES, DO NOT EDIT!
13
13
  ///////////////////////////////////////////
14
14
 
15
- [id="plugins-{type}-{plugin}"]
15
+ [id="plugins-{type}s-{plugin}"]
16
16
 
17
17
  === Multiline codec plugin
18
18
 
@@ -11,7 +11,7 @@ require "logstash/codecs/auto_flush"
11
11
  # hosts, such as the <<plugins-inputs-beats>> input plugin, you should not use
12
12
  # the multiline codec to handle multiline events. Doing so may result in the
13
13
  # mixing of streams and corrupted event data. In this situation, you need to
14
- # handle multiline events before sending the event data to Logstash.
14
+ # handle multiline events before sending the event data to Logstash.
15
15
  #
16
16
  # The original goal of this codec was to allow joining of multiline messages
17
17
  # from files into a single event. For example, joining Java exception and
@@ -198,7 +198,7 @@ module LogStash module Codecs class Multiline < LogStash::Codecs::Base
198
198
  text.split("\n").each do |line|
199
199
  match = @grok.match(line)
200
200
  @logger.debug("Multiline", :pattern => @pattern, :text => line,
201
- :match => !match.nil?, :negate => @negate)
201
+ :match => (match != false), :negate => @negate)
202
202
 
203
203
  # Add negate option
204
204
  match = (match and !@negate) || (!match and @negate)
@@ -238,7 +238,7 @@ module LogStash module Codecs class Multiline < LogStash::Codecs::Base
238
238
 
239
239
  def merge_events
240
240
  event = LogStash::Event.new(LogStash::Event::TIMESTAMP => @time, "message" => @buffer.join(NL))
241
- event.tag @multiline_tag if @multiline_tag && @buffer.size > 1
241
+ event.tag @multiline_tag if !@multiline_tag.empty? && @buffer.size > 1
242
242
  event.tag "multiline_codec_max_bytes_reached" if over_maximum_bytes?
243
243
  event.tag "multiline_codec_max_lines_reached" if over_maximum_lines?
244
244
  event
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-multiline'
4
- s.version = '3.0.5'
4
+ s.version = '3.0.6'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The multiline codec will collapse multiline messages and merge them into a single event."
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-codec-multiline
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-23 00:00:00.000000000 Z
11
+ date: 2017-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement