logstash-filter-tld 3.0.0 → 3.0.1

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: d17e310163163fec96ac396596150cd82e0a5fb8
4
- data.tar.gz: 723fdf84c764b6fbb1269a66a0e548a6fd8a6d57
3
+ metadata.gz: 77305744238f7be255653d3817733f45906bb201
4
+ data.tar.gz: daf6dfc61b198605dccf7e41a0efe5fa005257f0
5
5
  SHA512:
6
- metadata.gz: 9b374611182491b851d18dc4919b68129cb6272b7b466972fa72f1efc2c91055a5a7a97335d8383624355acc5c3da0f7dd575e183c203253fa373f8f887d3701
7
- data.tar.gz: ead43c2fbe6964a373bdd65793a61271d0aacc6168ae4f90b06ebb21a3e69fc521492adec5b5dbb1106e167685bfbceed9f91235021bb6768db68b18973e0578
6
+ metadata.gz: 606f2dad48bbe1e7772f3e76d51353e84cfbf92f8209ee865da656e9474c36b1b6a96c74cebe19c08e2569f53f18be7416264a62e24535a85e84b35cbb591dd6
7
+ data.tar.gz: 256d8fb8163c4c714db43fadbed200cc59a7f8092d1e470921d163025a5242fe0e381cc3b695c5dcf7270bd11774f16c77cca795307b74040d7da33c94c63fc5
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,73 @@
1
+ :plugin: tld
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
+ === Tld filter plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ This example filter will replace the contents of the default
24
+ message field with whatever you specify in the configuration.
25
+
26
+ It is only intended to be used as an example.
27
+
28
+ [id="plugins-{type}s-{plugin}-options"]
29
+ ==== Tld Filter Configuration Options
30
+
31
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
32
+
33
+ [cols="<,<,<",options="header",]
34
+ |=======================================================================
35
+ |Setting |Input type|Required
36
+ | <<plugins-{type}s-{plugin}-source>> |<<string,string>>|No
37
+ | <<plugins-{type}s-{plugin}-target>> |<<string,string>>|No
38
+ |=======================================================================
39
+
40
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
41
+ filter plugins.
42
+
43
+ &nbsp;
44
+
45
+ [id="plugins-{type}s-{plugin}-source"]
46
+ ===== `source`
47
+
48
+ * Value type is <<string,string>>
49
+ * Default value is `"message"`
50
+
51
+ Setting the config_name here is required. This is how you
52
+ configure this filter from your Logstash config.
53
+
54
+ filter {
55
+ example {
56
+ message => "My message..."
57
+ }
58
+ }
59
+
60
+ The source field to parse
61
+
62
+ [id="plugins-{type}s-{plugin}-target"]
63
+ ===== `target`
64
+
65
+ * Value type is <<string,string>>
66
+ * Default value is `"tld"`
67
+
68
+ The target field to place all the data
69
+
70
+
71
+
72
+ [id="plugins-{type}s-{plugin}-common-options"]
73
+ include::{include_path}/{type}.asciidoc[]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-tld'
3
- s.version = '3.0.0'
3
+ s.version = '3.0.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "This example filter replaces the contents of the message field with the specified value."
6
6
  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"
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.require_paths = ["lib"]
11
11
 
12
12
  # Files
13
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
13
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
14
14
  # Tests
15
15
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
16
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-tld
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-22 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
@@ -71,6 +71,7 @@ files:
71
71
  - LICENSE
72
72
  - NOTICE.TXT
73
73
  - README.md
74
+ - docs/index.asciidoc
74
75
  - lib/logstash/filters/tld.rb
75
76
  - logstash-filter-tld.gemspec
76
77
  - spec/filters/tld_spec.rb