logstash-filter-json 2.0.4 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d63e1a61fa9445004bb7885f6a538f3a2d0f111
4
- data.tar.gz: 01e6536b5b3299872db076c92f82086214b208e8
3
+ metadata.gz: bd746f5742e8da5738fb9721b8e63bb08c59f7c4
4
+ data.tar.gz: 3496565b8e687152acf4f1573305505e97cfbddb
5
5
  SHA512:
6
- metadata.gz: 977c862cf4042499c38c0feb4b3f3cdaca9a530b5c40d93c71513f4294c4babfe820f6ea593b66af61a46419c1858d01f3abfbce53db2563fcd9e182c4771c04
7
- data.tar.gz: 0a699c7e3a8ec591e0c8810cb91f51e53e8ac7ae7f02ba64a995abb30e77e89d78180602f3db52fe518a4ac4d79bfc6dcaf5866de39e5259f799f149d3a3d4b4
6
+ metadata.gz: 0b615c999b1a94f8be0033acfbd212be5c9ac682a6d96202d6cb4b2c2b8674c71ee49016d472de1799b5b6ceb4f7c426d65c990158e98eb33e5983b6605eac67
7
+ data.tar.gz: b977b150a7cb258f3edeb9fa48c959f8c944ff99413270b7dfc65d3fcf41fa55d50fd84c7bb172a599a2153a5db7cd574359bd2f1feaa9a99f549005dcc7002e
@@ -1,3 +1,7 @@
1
+ # 2.0.6
2
+ - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
+ # 2.0.5
4
+ - New dependency requirements for logstash-core for the 5.0 release
1
5
  ## 2.0.4
2
6
  - Added an option to configure the tags set when a `JSON` parsing error occur #20
3
7
 
@@ -10,6 +10,15 @@ require "logstash/timestamp"
10
10
  # By default it will place the parsed JSON in the root (top level) of the Logstash event, but this
11
11
  # filter can be configured to place the JSON into any arbitrary event field, using the
12
12
  # `target` configuration.
13
+ #
14
+ # This plugin has a few fallback scenario when something bad happen during the parsing of the event.
15
+ # If the JSON parsing fails on the data, the event will be untouched and it will be tagged with a
16
+ # `_jsonparsefailure` then you can use conditionals to clean the data. You can configured this tag with then
17
+ # `tag_on_failure` option.
18
+ #
19
+ # If the parsed data contains a `@timestamp` field, we will try to use it for the event's `@timestamp`, if the
20
+ # parsing fails, the field will be renamed to `_@timestamp` and the event will be tagged with a
21
+ # `_timestampparsefailure`.
13
22
  class LogStash::Filters::Json < LogStash::Filters::Base
14
23
 
15
24
  config_name "json"
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-json'
4
- s.version = '2.0.4'
4
+ s.version = '2.0.6'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This is a JSON parsing filter. It takes an existing field which contains JSON and expands it into an actual data structure within the Logstash event."
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/plugin install gemname. This gem is not a stand-alone program"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core", ">= 2.0.0.beta2", "< 3.0.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
24
24
 
25
25
  s.add_development_dependency 'logstash-devutils'
26
26
  end
metadata CHANGED
@@ -1,49 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.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: 2016-02-26 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash-core
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: 2.0.0.beta2
20
- - - <
21
- - !ruby/object:Gem::Version
22
- version: 3.0.0
23
14
  requirement: !ruby/object:Gem::Requirement
24
15
  requirements:
25
- - - '>='
16
+ - - "~>"
26
17
  - !ruby/object:Gem::Version
27
- version: 2.0.0.beta2
28
- - - <
29
- - !ruby/object:Gem::Version
30
- version: 3.0.0
18
+ version: '1.0'
19
+ name: logstash-core-plugin-api
31
20
  prerelease: false
32
21
  type: :runtime
33
- - !ruby/object:Gem::Dependency
34
- name: logstash-devutils
35
22
  version_requirements: !ruby/object:Gem::Requirement
36
23
  requirements:
37
- - - '>='
24
+ - - "~>"
38
25
  - !ruby/object:Gem::Version
39
- version: '0'
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
40
28
  requirement: !ruby/object:Gem::Requirement
41
29
  requirements:
42
- - - '>='
30
+ - - ">="
43
31
  - !ruby/object:Gem::Version
44
32
  version: '0'
33
+ name: logstash-devutils
45
34
  prerelease: false
46
35
  type: :development
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
47
41
  description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
48
42
  email: info@elastic.co
49
43
  executables: []
@@ -71,12 +65,12 @@ require_paths:
71
65
  - lib
72
66
  required_ruby_version: !ruby/object:Gem::Requirement
73
67
  requirements:
74
- - - '>='
68
+ - - ">="
75
69
  - !ruby/object:Gem::Version
76
70
  version: '0'
77
71
  required_rubygems_version: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - '>='
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
75
  version: '0'
82
76
  requirements: []