logstash-filter-mutate 3.1.5 → 3.1.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 +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/index.asciidoc +5 -4
- data/lib/logstash/filters/mutate.rb +5 -4
- data/logstash-filter-mutate.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: 7f4dbb2508c959252efe206070cc2f7659bb8cd0
|
4
|
+
data.tar.gz: d0d99777d185e2cb9ba89c6faf3f6e20cc140887
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c84f4a118164949680800aa0f1db6f50fd2e9134a8a57b0139915199968232faf88427284892bc8e960b22da62f1b34ddde4c90b2107d723614a556db38da4fd
|
7
|
+
data.tar.gz: 874e6355ed730cbbe3aca61af8cff6d7ad9cdb3c9040353fa9e6bebb44619aeed12c8a11d860bf1b9ef563b14bb731d45a0ab01dfa60d7ade21adc07cd20f813
|
data/CHANGELOG.md
CHANGED
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
|
-
|
104
|
-
|
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
|
-
#
|
70
|
-
#
|
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
|
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
|
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.
|
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.
|
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-
|
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
|