logstash-pack-megateuf 0.1.0 → 0.1.1

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: a429e8ed698ab8377189842e2231a16e105bd71e
4
- data.tar.gz: f240f5ee29723c15b89b7d6450d86bd877929812
3
+ metadata.gz: 9efc0bf90010ec0a041cdfd21024d19dcd4b0feb
4
+ data.tar.gz: ff93b19a09ca02684a9de1984cc3e59b2a61ba46
5
5
  SHA512:
6
- metadata.gz: 40d3514444eb17dff7222c5f814903d41065634e34482f7b262f07221a72e92e83f41bcb3488665597a3db50151fa42c0dee90cf6576aa5e1a94b506e7d705b6
7
- data.tar.gz: 346df297132c340be67765f5198384c49bd6b919d0cfac2f793bf4cfe665a8cbe9f79aa552be538e1c970378287f776152d90c72c1dab71d5d197de7258ff52a
6
+ metadata.gz: 7cd28649b9e1520df7910436533af45d2fc2eb68204cd4d2ebc5c5df8a2e5e6b599f0fba056b388c37947a35d4e008793c29e618dff576c71e498ae82633d1f1
7
+ data.tar.gz: 93c997381692d031433601dfc93c956f319ffb20ba56874ca1202f38ffe5bba81198aac267b8c4c967e806aca97985a0d28c71588aa6d0fb254a91a4ca7211d2
@@ -0,0 +1,39 @@
1
+ # encoding: utf-8
2
+ require "logstash/agent"
3
+ require "logstash/universal_plugin"
4
+
5
+ module Fuzzy
6
+ class WaynesWorldCore < LogStash::UniversalPlugin
7
+ include LogStash::Util::Loggable
8
+
9
+ class AgentListener
10
+ include LogStash::Util::Loggable
11
+
12
+ def initialize
13
+ logger.error("initialize")
14
+ end
15
+
16
+ def after_initialize(agent)
17
+ settings = LogStash::Settings.clone
18
+ settings.set("dynamic_reloading")
19
+
20
+ agent.register_pipeline...
21
+ logger.error("after_initialize", :happy_wayneworld_port => LogStash::SETTINGS.get("happy.wayneworld.port"))
22
+ end
23
+ end
24
+
25
+ def initialize
26
+ logger.error("initialize universal plugin")
27
+ end
28
+
29
+ def register_hooks(hooks)
30
+ logger.error("register_hooks")
31
+ hooks.register_hooks(LogStash::Agent, AgentListener.new)
32
+ end
33
+
34
+ def additionals_settings(settings)
35
+ logger.error("additionals_settings")
36
+ settings.register(LogStash::Setting::PortRange.new("happy.wayneworld.port", 9600..9700))
37
+ end
38
+ end
39
+ end
@@ -1,6 +1,9 @@
1
1
  # encoding: utf-8
2
2
  require "fuzzy/megateuf_in"
3
3
  require "fuzzy/megateuf_out"
4
+ require "logstash/plugins/registry"
5
+ require "fuzzy/waynes_world_core"
4
6
 
5
7
  LogStash::PluginRegistry.add(:input, "megateuf_in", Fuzzy::MegateufIn)
6
8
  LogStash::PluginRegistry.add(:output, "megateuf_out", Fuzzy::MegateufOut)
9
+ LogStash::PluginRegistry.add(:universal, "waynes_world_core", Fuzzy::WaynesWorldCore)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-pack-megateuf'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = 'Write a short summary, because Rubygems requires one.'
6
6
  s.description = 'Write a longer description or delete this line.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-pack-megateuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pier-Hugues Pellerin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-14 00:00:00.000000000 Z
11
+ date: 2016-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core
@@ -66,6 +66,7 @@ files:
66
66
  - README.md
67
67
  - lib/fuzzy/megateuf_in.rb
68
68
  - lib/fuzzy/megateuf_out.rb
69
+ - lib/fuzzy/waynes_world_core.rb
69
70
  - lib/logstash_registry.rb
70
71
  - logstash-pack-megateuf.gemspec
71
72
  - spec/outputs/secret_spec.rb