logstash-filter-split 3.1.2 → 3.1.3

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: bac465c92c547ae65d21d9e8fff888b430c86610
4
- data.tar.gz: 8c0a31fa0b00a6cbe23f41953a0e7050d1a88072
3
+ metadata.gz: 310d77d71998a2f9449694e33470dc9c511bcffd
4
+ data.tar.gz: a5edd1fafda58318f37f654aff75d9ecd7c4f673
5
5
  SHA512:
6
- metadata.gz: 6192819d80a89065954d3b8f77d7cf997dcf3d6ce38a57d58747832e6603f434381a57965a9655e7f6ae7dbe4c5d83005efc7ffc95b21b7e96feafa79ff0451c
7
- data.tar.gz: 860b16e6b425cb639dce6b5cc32f40929e344b8f52168eb2457b65b5a9fa8b665700a0c05ed23e4647dce2360cd8e6d0591c4687a646850fa681b8b4038a92c9
6
+ metadata.gz: 21444628296418cb1ea8796bf128981dfd8324bc22ed8895b5e0bfb4547839a993324251c370aa075390f994ca2ead72dfa742a9a191b4afda3f7291904b94d0
7
+ data.tar.gz: 64148e84ad8a29d06cb18d0b57a126db459a161c6a3441b4f93d6e751a35fff132a2e688526e81632057c19aebe3d5f8edf5b457051273172a2d06d4899fc255
@@ -1,3 +1,5 @@
1
+ ## 3.1.3
2
+ - Improved performance by no longer cloning the source field if it is the same as the target field
1
3
  ## 3.1.1
2
4
  - Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
3
5
 
@@ -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
  === Split filter plugin
18
18
 
@@ -70,7 +70,7 @@ class LogStash::Filters::Split < LogStash::Filters::Base
70
70
  original_value = event.get(@field)
71
71
 
72
72
  if original_value.is_a?(Array)
73
- splits = original_value
73
+ splits = target.nil? ? event.remove(@field) : original_value
74
74
  elsif original_value.is_a?(String)
75
75
  # Using -1 for 'limit' on String#split makes ruby not drop trailing empty
76
76
  # splits.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-split'
4
- s.version = '3.1.2'
4
+ s.version = '3.1.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The split filter is for splitting multiline messages into separate 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-split
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
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-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement