logstash-filter-mutate 3.1.5 → 3.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 501e5df0525fdfe75cd9037ef0c9359a5508f5b5
4
- data.tar.gz: 544b226c746ce230aed79bff95e8570a98b70c72
3
+ metadata.gz: 7f4dbb2508c959252efe206070cc2f7659bb8cd0
4
+ data.tar.gz: d0d99777d185e2cb9ba89c6faf3f6e20cc140887
5
5
  SHA512:
6
- metadata.gz: 76bb61eff6123e02ea18749d8e797c1617a018b2bdd66b751c0937372da059c5e23074295531c6d0191ce090d85214b3751d7d4d17ea26e827a855351870a4e4
7
- data.tar.gz: 9729bc0839d86afe04cd8d515c9fe624c7e70cefe83d489774d98118ca9f2fe9b3deaf0fc90240f504a67c54c8eca9eabdb892c87b3268b57c843023612b942e
6
+ metadata.gz: c84f4a118164949680800aa0f1db6f50fd2e9134a8a57b0139915199968232faf88427284892bc8e960b22da62f1b34ddde4c90b2107d723614a556db38da4fd
7
+ data.tar.gz: 874e6355ed730cbbe3aca61af8cff6d7ad9cdb3c9040353fa9e6bebb44619aeed12c8a11d860bf1b9ef563b14bb731d45a0ab01dfa60d7ade21adc07cd20f813
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.1.6
2
+ - Fix some documentation issues
3
+
1
4
  ## 3.1.4
2
5
  - feature: Allow to copy fields.
3
6
 
data/docs/index.asciidoc CHANGED
@@ -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
  === Mutate filter plugin
18
18
 
@@ -100,8 +100,9 @@ Example:
100
100
  * Value type is <<array,array>>
101
101
  * There is no default value for this setting.
102
102
 
103
- Convert a string field by applying a regular expression and a replacement.
104
- If the field is not a string, no action will be taken.
103
+ Match a regular expression against a field value and replace all matches
104
+ with a replacement string. Only fields that are strings or arrays of
105
+ strings are supported. For other kinds of fields no action will be taken.
105
106
 
106
107
  This configuration takes an array consisting of 3 elements per
107
108
  field/substitution.
@@ -279,4 +280,4 @@ Example:
279
280
 
280
281
 
281
282
  [id="plugins-{type}s-{plugin}-common-options"]
282
- include::{include_path}/{type}.asciidoc[]
283
+ include::{include_path}/{type}.asciidoc[]
@@ -66,8 +66,9 @@ class LogStash::Filters::Mutate < LogStash::Filters::Base
66
66
  # }
67
67
  config :convert, :validate => :hash
68
68
 
69
- # Convert a string field by applying a regular expression and a replacement.
70
- # If the field is not a string, no action will be taken.
69
+ # Match a regular expression against a field value and replace all matches
70
+ # with another string. Only fields that are strings or arrays of strings are
71
+ # supported. For other kinds of fields no action will be taken.
71
72
  #
72
73
  # This configuration takes an array consisting of 3 elements per
73
74
  # field/substitution.
@@ -311,7 +312,7 @@ class LogStash::Filters::Mutate < LogStash::Filters::Base
311
312
  if v.is_a?(String)
312
313
  gsub_dynamic_fields(event, v, needle, replacement)
313
314
  else
314
- @logger.warn("gsub mutation is only applicable for Strings, skipping", :field => field, :value => v)
315
+ @logger.warn("gsub mutation is only applicable for strings and arrays of strings, skipping", :field => field, :value => v)
315
316
  v
316
317
  end
317
318
  end
@@ -319,7 +320,7 @@ class LogStash::Filters::Mutate < LogStash::Filters::Base
319
320
  when String
320
321
  event.set(field, gsub_dynamic_fields(event, value, needle, replacement))
321
322
  else
322
- @logger.debug? && @logger.debug("gsub mutation is only applicable for Strings, skipping", :field => field, :value => event.get(field))
323
+ @logger.debug? && @logger.debug("gsub mutation is only applicable for strings and arrays of strings, skipping", :field => field, :value => event.get(field))
323
324
  end
324
325
  end
325
326
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-mutate'
4
- s.version = '3.1.5'
4
+ s.version = '3.1.6'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The mutate filter allows you to perform general mutations on fields. You can rename, remove, replace, and modify fields in your 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-mutate
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.5
4
+ version: 3.1.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-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement