logstash-filter-json 3.0.5 → 3.0.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/LICENSE +1 -1
- data/docs/index.asciidoc +10 -10
- data/logstash-filter-json.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ddf0449d8e4b3c20ad42da931a88623695222c346815463d100f184deb39a41
|
|
4
|
+
data.tar.gz: bd1c0786156077172f52eb2998b86030ec8524ed341a8b17544942f5b662f69e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 191f3b6b17ae2d93c10d763fbe765bead21e1e6932986dd188a493d5e616245f2d9e6ec1956b3fbe29edfa9e3aa98a828d803b51fd12a18bd6fa860f26813700
|
|
7
|
+
data.tar.gz: 0a7189b4d3249b2a249b263c5fdfe0180b164f633fa2d90a1ec9d979cbdd0e9b18a02ff3fd92e9addc351699188074e93bea1ef43630ac42e4b6d5aa8c6b597c
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
data/docs/index.asciidoc
CHANGED
|
@@ -14,7 +14,7 @@ END - GENERATED VARIABLES, DO NOT EDIT!
|
|
|
14
14
|
|
|
15
15
|
[id="plugins-{type}s-{plugin}"]
|
|
16
16
|
|
|
17
|
-
===
|
|
17
|
+
=== JSON filter plugin
|
|
18
18
|
|
|
19
19
|
include::{include_path}/plugin_header.asciidoc[]
|
|
20
20
|
|
|
@@ -23,21 +23,21 @@ include::{include_path}/plugin_header.asciidoc[]
|
|
|
23
23
|
This is a JSON parsing filter. It takes an existing field which contains JSON and
|
|
24
24
|
expands it into an actual data structure within the Logstash event.
|
|
25
25
|
|
|
26
|
-
By default it will place the parsed JSON in the root (top level) of the Logstash event, but this
|
|
26
|
+
By default, it will place the parsed JSON in the root (top level) of the Logstash event, but this
|
|
27
27
|
filter can be configured to place the JSON into any arbitrary event field, using the
|
|
28
28
|
`target` configuration.
|
|
29
29
|
|
|
30
|
-
This plugin has a few fallback
|
|
31
|
-
If the JSON parsing fails on the data, the event will be untouched and it will be tagged with
|
|
32
|
-
`_jsonparsefailure
|
|
30
|
+
This plugin has a few fallback scenarios when something bad happens during the parsing of the event.
|
|
31
|
+
If the JSON parsing fails on the data, the event will be untouched and it will be tagged with
|
|
32
|
+
`_jsonparsefailure`; you can then use conditionals to clean the data. You can configure this tag with the
|
|
33
33
|
`tag_on_failure` option.
|
|
34
34
|
|
|
35
|
-
If the parsed data contains a `@timestamp` field,
|
|
35
|
+
If the parsed data contains a `@timestamp` field, the plugin will try to use it for the events `@timestamp`, and if the
|
|
36
36
|
parsing fails, the field will be renamed to `_@timestamp` and the event will be tagged with a
|
|
37
37
|
`_timestampparsefailure`.
|
|
38
38
|
|
|
39
39
|
[id="plugins-{type}s-{plugin}-options"]
|
|
40
|
-
====
|
|
40
|
+
==== JSON Filter Configuration Options
|
|
41
41
|
|
|
42
42
|
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
|
43
43
|
|
|
@@ -61,7 +61,7 @@ filter plugins.
|
|
|
61
61
|
* Value type is <<boolean,boolean>>
|
|
62
62
|
* Default value is `false`
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
Allows for skipping the filter on invalid JSON (this allows you to handle JSON and non-JSON data without warnings)
|
|
65
65
|
|
|
66
66
|
[id="plugins-{type}s-{plugin}-source"]
|
|
67
67
|
===== `source`
|
|
@@ -82,7 +82,7 @@ For example, if you have JSON data in the `message` field:
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
The above would parse the
|
|
85
|
+
The above would parse the JSON from the `message` field.
|
|
86
86
|
|
|
87
87
|
[id="plugins-{type}s-{plugin}-tag_on_failure"]
|
|
88
88
|
===== `tag_on_failure`
|
|
@@ -118,4 +118,4 @@ NOTE: if the `target` field already exists, it will be overwritten!
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
[id="plugins-{type}s-{plugin}-common-options"]
|
|
121
|
-
include::{include_path}/{type}.asciidoc[]
|
|
121
|
+
include::{include_path}/{type}.asciidoc[]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
|
|
3
3
|
s.name = 'logstash-filter-json'
|
|
4
|
-
s.version = '3.0.
|
|
4
|
+
s.version = '3.0.6'
|
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
|
6
6
|
s.summary = "Parses JSON 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-json
|
|
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:
|
|
11
|
+
date: 2019-02-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
84
84
|
version: '0'
|
|
85
85
|
requirements: []
|
|
86
86
|
rubyforge_project:
|
|
87
|
-
rubygems_version: 2.6.
|
|
87
|
+
rubygems_version: 2.6.13
|
|
88
88
|
signing_key:
|
|
89
89
|
specification_version: 4
|
|
90
90
|
summary: Parses JSON events
|