logstash-input-generator 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 890e65da74505e57ab2dd7632f855e3ba9c5c628
4
- data.tar.gz: 79134d2fb11b1f448492d8ecfbf5daa460d5c464
3
+ metadata.gz: 766ebdb957737e86f694bd46032aa3ff84c1702e
4
+ data.tar.gz: 160746fa4827c273a26683a16cbbe0741d462e3d
5
5
  SHA512:
6
- metadata.gz: 61fc21fc97e47e2d9785c9a0c697713307806d8995f4cec24976eeb775be4ce01571c74b18e6b1636426769a0f87811e5ddb12fef048a9f40f2cb9b4b3a1454f
7
- data.tar.gz: 8c719de82bcc08710641d8442938578e966ea26e3f23146ada22f9214c6646d826d13c2a96d03a1a3fbc81eb85aee17abf0fa11c9ec8c23e6e9c23459640e85b
6
+ metadata.gz: 170baf9543910dd5ad056726ed9ccae833642f746f414c16de54cf226da5bf5b4c31b384df29bd9f08925b99f4ac5a4415051c2dbbefa1aa5fd0403d48e261c8
7
+ data.tar.gz: c931feecb546e010b575486974f5894b76118fac6379e12e4adf86897ea4ac16de6fa436345da7dff1cfff676566a873742d0ff836ba571c0c75c1f6f3538cca
data/Gemfile CHANGED
@@ -1,4 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in logstash-mass_effect.gemspec
4
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,107 @@
1
+ :plugin: generator
2
+ :type: input
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
+ === Generator input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ Generate random log events.
24
+
25
+ The general intention of this is to test performance of plugins.
26
+
27
+ An event is generated first
28
+
29
+ [id="plugins-{type}s-{plugin}-options"]
30
+ ==== Generator Input Configuration Options
31
+
32
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
33
+
34
+ [cols="<,<,<",options="header",]
35
+ |=======================================================================
36
+ |Setting |Input type|Required
37
+ | <<plugins-{type}s-{plugin}-count>> |<<number,number>>|No
38
+ | <<plugins-{type}s-{plugin}-lines>> |<<array,array>>|No
39
+ | <<plugins-{type}s-{plugin}-message>> |<<string,string>>|No
40
+ | <<plugins-{type}s-{plugin}-threads>> |<<number,number>>|No
41
+ |=======================================================================
42
+
43
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
44
+ input plugins.
45
+
46
+ &nbsp;
47
+
48
+ [id="plugins-{type}s-{plugin}-count"]
49
+ ===== `count`
50
+
51
+ * Value type is <<number,number>>
52
+ * Default value is `0`
53
+
54
+ Set how many messages should be generated.
55
+
56
+ The default, `0`, means generate an unlimited number of events.
57
+
58
+ [id="plugins-{type}s-{plugin}-lines"]
59
+ ===== `lines`
60
+
61
+ * Value type is <<array,array>>
62
+ * There is no default value for this setting.
63
+
64
+ The lines to emit, in order. This option cannot be used with the 'message'
65
+ setting.
66
+
67
+ Example:
68
+ [source,ruby]
69
+ input {
70
+ generator {
71
+ lines => [
72
+ "line 1",
73
+ "line 2",
74
+ "line 3"
75
+ ]
76
+ # Emit all lines 3 times.
77
+ count => 3
78
+ }
79
+ }
80
+
81
+ The above will emit `line 1` then `line 2` then `line`, then `line 1`, etc...
82
+
83
+ [id="plugins-{type}s-{plugin}-message"]
84
+ ===== `message`
85
+
86
+ * Value type is <<string,string>>
87
+ * Default value is `"Hello world!"`
88
+
89
+ The message string to use in the event.
90
+
91
+ If you set this to `stdin` then this plugin will read a single line from
92
+ stdin and use that as the message string for every event.
93
+
94
+ Otherwise, this value will be used verbatim as the event message.
95
+
96
+ [id="plugins-{type}s-{plugin}-threads"]
97
+ ===== `threads`
98
+
99
+ * Value type is <<number,number>>
100
+ * Default value is `1`
101
+
102
+
103
+
104
+
105
+
106
+ [id="plugins-{type}s-{plugin}-common-options"]
107
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-generator'
4
- s.version = '3.0.2'
4
+ s.version = '3.0.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Generate random log events."
7
7
  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"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
14
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
15
15
 
16
16
  # Tests
17
17
  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-input-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 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
@@ -70,6 +70,7 @@ files:
70
70
  - LICENSE
71
71
  - NOTICE.TXT
72
72
  - README.md
73
+ - docs/index.asciidoc
73
74
  - lib/logstash/inputs/generator.rb
74
75
  - logstash-input-generator.gemspec
75
76
  - spec/inputs/generator_spec.rb
@@ -95,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
96
  version: '0'
96
97
  requirements: []
97
98
  rubyforge_project:
98
- rubygems_version: 2.6.3
99
+ rubygems_version: 2.4.8
99
100
  signing_key:
100
101
  specification_version: 4
101
102
  summary: Generate random log events.