logstash-output-my-first-plugin 0.1.1.2 → 0.1.1.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c703cf1f54fcf63fdd1158f43ed4794dc80b3bab1f5e91c0edc7c4ba9be70f5a
|
4
|
+
data.tar.gz: be37bbe316706aa77d72c821f68e18ae920a402bd7f829c35490fb7ceef7651c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b391ef93cffde73c8e00ead0545352ba1aed15992485693f7b64971df3762dd247f69d861877906ed44c70be6209c07bd1489c46477f7fb8e262ebc7a81a5fd8
|
7
|
+
data.tar.gz: 9a606689507e7830602e1b78ff3cb7dc39aa629d282225385a72c70240faee72d8d83182026e8ef9bed6bf63dc692bd0319445c23d62e261481a26c1e51ac05d
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require "logstash/outputs/base"
|
2
|
+
require 'json'
|
2
3
|
|
3
4
|
class LogStash::Outputs::MyFirstPlugin < LogStash::Outputs::Base
|
4
5
|
config_name "my-first-plugin"
|
@@ -15,6 +16,7 @@ class LogStash::Outputs::MyFirstPlugin < LogStash::Outputs::Base
|
|
15
16
|
puts "in receive"
|
16
17
|
p [:param1, @param1, :param2, @param2]
|
17
18
|
p [:event, event]
|
19
|
+
p [:event_json, JSON.parse(event.to_json)]
|
18
20
|
return "Event received"
|
19
21
|
end
|
20
22
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-my-first-plugin'
|
3
|
-
s.version = '0.1.1.
|
3
|
+
s.version = '0.1.1.3'
|
4
4
|
s.licenses = ['Apache-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.'
|