logstash-codec-multiline 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/index.asciidoc +1 -1
- data/lib/logstash/codecs/multiline.rb +3 -3
- data/logstash-codec-multiline.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc1680434a0e808dd233a427832c392795d9b1af
|
4
|
+
data.tar.gz: 73557f62bb9d53c5a18045564d1f68fa336e9cac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6d27917a1fe86c412a4baf878d93fe09cbd98b2ee2a3891bc554b7564ef872e87f9c9381c6b9cd29a5d4fb157884dfa426704a6e191b0e4997c3c998e4ca85f
|
7
|
+
data.tar.gz: c92c4b2bc23af5dd8f2cb958b3d4360f0bb3641ae058135534c4a40b16b02c208b14a9fbb81a70b46e35019d02497086080ec7bf01cec2c21850dcc0b034e305
|
data/CHANGELOG.md
CHANGED
data/docs/index.asciidoc
CHANGED
@@ -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 =>
|
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
|
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.
|
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.
|
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-
|
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
|