logstash-filter-xml 4.1.2 → 4.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/docs/index.asciidoc +17 -3
- data/lib/logstash/filters/xml.rb +2 -2
- data/logstash-filter-xml.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62c5715957c1a55a56e17b7da5aca249805f6545ee93bc63f4ebe0afb5b89336
|
4
|
+
data.tar.gz: 830fc0ec0863e760bf94338961248aca9567998c105ee6661774234bc9019d10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fd190231a661d8a99f7a8a97915b5adbd327b1533d58e7ef02643a52eadf6d0dd3be5defd9b4627ffa08e07b03fecae533aec36da3ab3e2c442fc8a81585b2b
|
7
|
+
data.tar.gz: 69db3a81bba9ac9e1baccaa8affa18d17a0e0b6ab5c0ae82cd7cbe039454cf6814db937b3b92fa0f402134052a7d6a1c696fe60e403226993472c158b6131341
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 4.1.3
|
2
|
+
- [DOC] Updated URL for current xsl reference docs [#70](https://github.com/logstash-plugins/logstash-filter-xml/pull/70)
|
3
|
+
- [DOC] Added info about non valid characters [#72](https://github.com/logstash-plugins/logstash-filter-xml/pull/72)
|
4
|
+
|
1
5
|
## 4.1.2
|
2
6
|
- [DOC] Updated docs to correct name of parse_options config option [#75](https://github.com/logstash-plugins/logstash-filter-xml/pull/75)
|
3
7
|
|
data/docs/index.asciidoc
CHANGED
@@ -99,6 +99,18 @@ By default the parser is not strict and thus accepts some invalid content.
|
|
99
99
|
Currently supported options are:
|
100
100
|
|
101
101
|
- `strict` - forces the parser to fail early instead of accumulating errors when content is not valid xml.
|
102
|
+
|
103
|
+
Control characters such as ASCII 0x0 are not allowed and _always_ result in non-valid XML.
|
104
|
+
|
105
|
+
When XML content is not valid, it will be tagged as `_xmlparsefailure`.
|
106
|
+
|
107
|
+
XML specs:
|
108
|
+
|
109
|
+
* XML 1.0 Spec: https://www.w3.org/TR/2008/REC-xml-20081126/#charsets
|
110
|
+
* XML 1.1 Spec: https://www.w3.org/TR/xml11/#charsets
|
111
|
+
|
112
|
+
|
113
|
+
|
102
114
|
|
103
115
|
[id="plugins-{type}s-{plugin}-remove_namespaces"]
|
104
116
|
===== `remove_namespaces`
|
@@ -187,10 +199,12 @@ destination field. Multiple values returned will be pushed onto the
|
|
187
199
|
destination field as an array. As such, multiple matches across
|
188
200
|
multiple source fields will produce duplicate entries in the field.
|
189
201
|
|
190
|
-
|
202
|
+
[id="plugins-{type}s-{plugin}-xpath_resources"]
|
203
|
+
====== Additional XPath resources
|
204
|
+
|
205
|
+
For more information on XPath, see https://www.w3schools.com/xml/xml_xpath.asp.
|
191
206
|
|
192
|
-
The XPath functions are particularly powerful
|
193
|
-
http://www.w3schools.com/xsl/xsl_functions.asp
|
207
|
+
The https://www.w3schools.com/xml/xsl_functions.asp[XPath functions] are particularly powerful.
|
194
208
|
|
195
209
|
|
196
210
|
|
data/lib/logstash/filters/xml.rb
CHANGED
@@ -51,10 +51,10 @@ class LogStash::Filters::Xml < LogStash::Filters::Base
|
|
51
51
|
# destination field as an array. As such, multiple matches across
|
52
52
|
# multiple source fields will produce duplicate entries in the field.
|
53
53
|
#
|
54
|
-
# More on XPath:
|
54
|
+
# More on XPath: https://www.w3schools.com/xml/xml_xpath.asp
|
55
55
|
#
|
56
56
|
# The XPath functions are particularly powerful:
|
57
|
-
#
|
57
|
+
# https://www.w3schools.com/xml/xsl_functions.asp
|
58
58
|
#
|
59
59
|
config :xpath, :validate => :hash, :default => {}
|
60
60
|
|
data/logstash-filter-xml.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-xml'
|
4
|
-
s.version = '4.1.
|
4
|
+
s.version = '4.1.3'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Parses XML into fields"
|
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-xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.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: 2021-
|
11
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
|
129
|
-
rubygems_version: 2.6.13
|
128
|
+
rubygems_version: 3.1.6
|
130
129
|
signing_key:
|
131
130
|
specification_version: 4
|
132
131
|
summary: Parses XML into fields
|