logstash-filter-json_encode 3.0.0-java → 3.0.1-java

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: f946ae455c6700d0a328f06195d739ab186d3592
4
- data.tar.gz: 0831e4b267efefd07c67a42e9ba0aa46b19a5a79
3
+ metadata.gz: 748877ba70011793727f7370a90ec83b741923e7
4
+ data.tar.gz: 7c92123b6e1fbea78ae3c09657cfdfa707cf3ea9
5
5
  SHA512:
6
- metadata.gz: ded8a16439b5075fbc063a065e9ffe40739b6fb5cf1c6af09da68e5b624e3883ced36da6088b1a5a804ecfcf124be161991249b12e847d8ced05fcbce0d8d4e5
7
- data.tar.gz: 14f0d188e4131ddb080a0019792a08bc7dd482e1d8e1c9360417154ed9840ed8c6060278d254b6098afd03889501d16f6727a3974469bdc1629ca515ccd15f7d
6
+ metadata.gz: a0a09218b704fe37dc8bb1fa0fe082ea10a566d43b0b0d885d5030e3f353a3d5aae1aec9f7913968341a5b737599967bcf416ded847b23baa5d24e4400fdad54
7
+ data.tar.gz: de1eb3c4815c7a163e94b461f9e5fe50a34b6513bb38d3817b295e16a2434ad085af4b13a488d2316cfaa34bcc4b4c4b48fd72913da879a916853d6228a461ea
data/Gemfile CHANGED
@@ -1,2 +1,11 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+
3
+ gemspec
4
+
5
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7
+
8
+ if Dir.exist?(logstash_path) && use_logstash_source
9
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
+ end
@@ -0,0 +1,76 @@
1
+ :plugin: json_encode
2
+ :type: filter
3
+
4
+ ///////////////////////////////////////////
5
+ START - GENERATED VARIABLES, DO NOT EDIT!
6
+ ///////////////////////////////////////////
7
+ :version: %VERSION%
8
+ :release_date: %RELEASE_DATE%
9
+ :changelog_url: %CHANGELOG_URL%
10
+ :include_path: ../../../../logstash/docs/include
11
+ ///////////////////////////////////////////
12
+ END - GENERATED VARIABLES, DO NOT EDIT!
13
+ ///////////////////////////////////////////
14
+
15
+ [id="plugins-{type}-{plugin}"]
16
+
17
+ === Json_encode filter plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ JSON encode filter. Takes a field and serializes it into JSON
24
+
25
+ If no target is specified, the source field is overwritten with the JSON
26
+ text.
27
+
28
+ For example, if you have a field named `foo`, and you want to store the
29
+ JSON encoded string in `bar`, do this:
30
+ [source,ruby]
31
+ filter {
32
+ json_encode {
33
+ source => "foo"
34
+ target => "bar"
35
+ }
36
+ }
37
+
38
+ [id="plugins-{type}s-{plugin}-options"]
39
+ ==== Json_encode Filter Configuration Options
40
+
41
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
42
+
43
+ [cols="<,<,<",options="header",]
44
+ |=======================================================================
45
+ |Setting |Input type|Required
46
+ | <<plugins-{type}s-{plugin}-source>> |<<string,string>>|Yes
47
+ | <<plugins-{type}s-{plugin}-target>> |<<string,string>>|No
48
+ |=======================================================================
49
+
50
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
51
+ filter plugins.
52
+
53
+ &nbsp;
54
+
55
+ [id="plugins-{type}s-{plugin}-source"]
56
+ ===== `source`
57
+
58
+ * This is a required setting.
59
+ * Value type is <<string,string>>
60
+ * There is no default value for this setting.
61
+
62
+ The field to convert to JSON.
63
+
64
+ [id="plugins-{type}s-{plugin}-target"]
65
+ ===== `target`
66
+
67
+ * Value type is <<string,string>>
68
+ * There is no default value for this setting.
69
+
70
+ The field to write the JSON into. If not specified, the source
71
+ field will be overwritten.
72
+
73
+
74
+
75
+ [id="plugins-{type}s-{plugin}-common-options"]
76
+ 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_encode'
4
- s.version = '3.0.0'
4
+ s.version = '3.0.1'
5
5
  s.platform = 'java'
6
6
  s.licenses = ['Apache-2.0']
7
7
  s.summary = "JSON encode filter. Takes a field and serializes it into JSON"
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.require_paths = ["lib"]
13
13
 
14
14
  # Files
15
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
15
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
16
16
 
17
17
  # Tests
18
18
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-json_encode
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-13 00:00:00.000000000 Z
11
+ date: 2017-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -56,6 +56,7 @@ files:
56
56
  - LICENSE
57
57
  - NOTICE.TXT
58
58
  - README.md
59
+ - docs/index.asciidoc
59
60
  - lib/logstash/filters/json_encode.rb
60
61
  - logstash-filter-json_encode.gemspec
61
62
  - spec/filters/json_encode_spec.rb