logstash-filter-tld 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +10 -1
- data/docs/index.asciidoc +73 -0
- data/logstash-filter-tld.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77305744238f7be255653d3817733f45906bb201
|
4
|
+
data.tar.gz: daf6dfc61b198605dccf7e41a0efe5fa005257f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 606f2dad48bbe1e7772f3e76d51353e84cfbf92f8209ee865da656e9474c36b1b6a96c74cebe19c08e2569f53f18be7416264a62e24535a85e84b35cbb591dd6
|
7
|
+
data.tar.gz: 256d8fb8163c4c714db43fadbed200cc59a7f8092d1e470921d163025a5242fe0e381cc3b695c5dcf7270bd11774f16c77cca795307b74040d7da33c94c63fc5
|
data/Gemfile
CHANGED
@@ -1,2 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
|
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
|
data/docs/index.asciidoc
ADDED
@@ -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
|
+
|
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[]
|
data/logstash-filter-tld.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-filter-tld'
|
3
|
-
s.version = '3.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[
|
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.
|
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:
|
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
|