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: 9f4a87bb22a6bd812638ab7684a16432b3a6fdeac5ee16347ff320eb14e59908
4
- data.tar.gz: a04b480cbce01746d8d1da60eb908043993abef5c66acec7caaaf2129268bff6
3
+ metadata.gz: c703cf1f54fcf63fdd1158f43ed4794dc80b3bab1f5e91c0edc7c4ba9be70f5a
4
+ data.tar.gz: be37bbe316706aa77d72c821f68e18ae920a402bd7f829c35490fb7ceef7651c
5
5
  SHA512:
6
- metadata.gz: a5428bb24a1ff625d67e6d04bce677d50a01b1299d5e84c0350304c24db84bb8ea753eaf9df13aae668db296d2c882903777af92ddbc3747f5e2422ffc1e1f81
7
- data.tar.gz: 5fc23920bc10615654b068d286348f1390234baa9531c74ce445d650cd4e025e7318746591cc9e4f1170cdcf682cc6fdd2a9e461f37371393c59f229c8306104
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.2'
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.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-my-first-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.2
4
+ version: 0.1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''