logstash-filter-metricize 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: 754b34ff0cb6468adf8f76241435c19d1cb8fd79
4
- data.tar.gz: 95529706e634d7e7298cb85850eb4e0797df4770
3
+ metadata.gz: fe645c81c016526708524db841511512fd388d26
4
+ data.tar.gz: 76aa6619c07cfb5a42c6cc514075982a44cca462
5
5
  SHA512:
6
- metadata.gz: 3192fe9cb59f9c61b1b3ef59fd2a0681f67674f3864716ecc2bd49a5b3543fef62f7b8ad206ee9b4e9bc9604da3f9f03b9fa4ac70628b465f872d4f0d1fa2f72
7
- data.tar.gz: 8b3e269009466eabcdd0ca0cf40761c04b0fe75b83ec82536e57d02db677c28b683f1783769ee6ed18714d1efa6ea88983790ef1f4a73e6a14edadb405025fd0
6
+ metadata.gz: 4e5f8c1c3f5db2b0f0c9dade29343df5720e67eda2c7428a4a1f363f5bfb03c04a54ef97ef65814dc54923e4d9700f1fa00353890498a7ee5607a0021a7d92b6
7
+ data.tar.gz: e9201f4bd50a5aa34aaa341809b5d3090f0f8bbe2a093e7ed4d95c89d15bb7535b5e52f8338966029adb82dd899a69f868a8418393131fd83a56acb74e07711f
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,109 @@
1
+ :plugin: metricize
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
+ === Metricize filter plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ The metricize filter takes complex events containing a number of metrics
24
+ and splits these up into multiple events, each holding a single metric.
25
+
26
+ Example:
27
+
28
+ Assume the following filter configuration:
29
+
30
+ filter {
31
+ metricize {
32
+ metrics => [ "metric1", "metric2" ]
33
+ }
34
+ }
35
+
36
+ Assuming the following event is passed in:
37
+
38
+ {
39
+ type => "type A"
40
+ metric1 => "value1"
41
+ metric2 => "value2"
42
+ }
43
+
44
+ This will result in the following 2 events being generated in addition to the original event:
45
+
46
+ { {
47
+ type => "type A" type => "type A"
48
+ metric => "metric1" metric => "metric2"
49
+ value => "value1" value => "value2"
50
+ } }
51
+
52
+
53
+ [id="plugins-{type}s-{plugin}-options"]
54
+ ==== Metricize Filter Configuration Options
55
+
56
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
57
+
58
+ [cols="<,<,<",options="header",]
59
+ |=======================================================================
60
+ |Setting |Input type|Required
61
+ | <<plugins-{type}s-{plugin}-drop_original_event>> |<<boolean,boolean>>|No
62
+ | <<plugins-{type}s-{plugin}-metric_field_name>> |<<string,string>>|No
63
+ | <<plugins-{type}s-{plugin}-metrics>> |<<array,array>>|Yes
64
+ | <<plugins-{type}s-{plugin}-value_field_name>> |<<string,string>>|No
65
+ |=======================================================================
66
+
67
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
68
+ filter plugins.
69
+
70
+ &nbsp;
71
+
72
+ [id="plugins-{type}s-{plugin}-drop_original_event"]
73
+ ===== `drop_original_event`
74
+
75
+ * Value type is <<boolean,boolean>>
76
+ * Default value is `false`
77
+
78
+ Flag indicating whether the original event should be dropped or not.
79
+
80
+ [id="plugins-{type}s-{plugin}-metric_field_name"]
81
+ ===== `metric_field_name`
82
+
83
+ * Value type is <<string,string>>
84
+ * Default value is `"metric"`
85
+
86
+ Name of the field the metric name will be written to.
87
+
88
+ [id="plugins-{type}s-{plugin}-metrics"]
89
+ ===== `metrics`
90
+
91
+ * This is a required setting.
92
+ * Value type is <<array,array>>
93
+ * There is no default value for this setting.
94
+
95
+ A new matrics event will be created for each metric field in this list.
96
+ All fields in this list will be removed from generated events.
97
+
98
+ [id="plugins-{type}s-{plugin}-value_field_name"]
99
+ ===== `value_field_name`
100
+
101
+ * Value type is <<string,string>>
102
+ * Default value is `"value"`
103
+
104
+ Name of the field the metric value will be written to.
105
+
106
+
107
+
108
+ [id="plugins-{type}s-{plugin}-common-options"]
109
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-metricize'
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 = "The metricize filter is for transforming events with multiple metrics into multiple event each with a single metric."
@@ -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-metricize
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-09-09 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/metricize.rb
60
61
  - logstash-filter-metricize.gemspec
61
62
  - spec/filters/metricize_spec.rb