logstash-filter-de_dot 1.0.0 → 1.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: 6c9fbb0c46943be7a2e1c806ae826e04af455df6
4
- data.tar.gz: 65ffbc5f47614653cbe0e5af09621f43c961df8d
3
+ metadata.gz: e2b354c1c13b99b0cd3c679061de48d9d51ec525
4
+ data.tar.gz: 173c47650f883c58864b1b5aeb908884dfea59a9
5
5
  SHA512:
6
- metadata.gz: 4eb5e878e39c2308be6a8e7a8f7d2a6d6e8cec8af0230f15fa6cd11645654fc5a03064ee1fc77ba234ef81c4290711396e184d51ec1b1757c576c6f12f18c74d
7
- data.tar.gz: 57c92a6cb4abab5fef4bf44d92b2141312483853991d836975c07fc62fc85c861b4fcd666c364a73e6f33d3910bce15a5be190792d7d5e5bf24ea534e76154eb
6
+ metadata.gz: cf2bee6c9296d90e79f0dfc90322c3b58de62d85b36ebbb5ed8099181744509bb8649ae442f4f6cadb35ce871f2afca2c1e766631d6f4af5969973b1825a9b17
7
+ data.tar.gz: 24fb33beefe0b58968b46cb7d38aada2ea9261a7a1e5fe2552d9618467c963aa112aa6c7a12bf2593eb4444f7be97948c6068c6b8c1dab902b8fe8c7d263b006
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
@@ -0,0 +1,82 @@
1
+ :plugin: de_dot
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
+ === De_dot filter plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ This filter _appears_ to rename fields by replacing `.` characters with a different
24
+ separator. In reality, it's a somewhat expensive filter that has to copy the
25
+ source field contents to a new destination field (whose name no longer contains
26
+ dots), and then remove the corresponding source field.
27
+
28
+ It should only be used if no other options are available.
29
+
30
+ [id="plugins-{type}s-{plugin}-options"]
31
+ ==== De_dot Filter Configuration Options
32
+
33
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
34
+
35
+ [cols="<,<,<",options="header",]
36
+ |=======================================================================
37
+ |Setting |Input type|Required
38
+ | <<plugins-{type}s-{plugin}-fields>> |<<array,array>>|No
39
+ | <<plugins-{type}s-{plugin}-nested>> |<<boolean,boolean>>|No
40
+ | <<plugins-{type}s-{plugin}-separator>> |<<string,string>>|No
41
+ |=======================================================================
42
+
43
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
44
+ filter plugins.
45
+
46
+ &nbsp;
47
+
48
+ [id="plugins-{type}s-{plugin}-fields"]
49
+ ===== `fields`
50
+
51
+ * Value type is <<array,array>>
52
+ * There is no default value for this setting.
53
+
54
+ The `fields` array should contain a list of known fields to act on.
55
+ If undefined, all top-level fields will be checked. Sub-fields must be
56
+ manually specified in the array. For example: `["field.suffix","[foo][bar.suffix]"]`
57
+ will result in "field_suffix" and nested or sub field ["foo"]["bar_suffix"]
58
+
59
+ WARNING: This is an expensive operation.
60
+
61
+
62
+ [id="plugins-{type}s-{plugin}-nested"]
63
+ ===== `nested`
64
+
65
+ * Value type is <<boolean,boolean>>
66
+ * Default value is `false`
67
+
68
+ If `nested` is _true_, then create sub-fields instead of replacing dots with
69
+ a different separator.
70
+
71
+ [id="plugins-{type}s-{plugin}-separator"]
72
+ ===== `separator`
73
+
74
+ * Value type is <<string,string>>
75
+ * Default value is `"_"`
76
+
77
+ Replace dots with this value.
78
+
79
+
80
+
81
+ [id="plugins-{type}s-{plugin}-common-options"]
82
+ include::{include_path}/{type}.asciidoc[]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-de_dot'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "This filter removes dots from field names and replaces them with a different separator."
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-de_dot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.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-26 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
@@ -57,6 +57,7 @@ files:
57
57
  - LICENSE
58
58
  - NOTICE.TXT
59
59
  - README.md
60
+ - docs/index.asciidoc
60
61
  - lib/logstash/filters/de_dot.rb
61
62
  - logstash-filter-de_dot.gemspec
62
63
  - spec/filters/de_dot_spec.rb