logstash-codecs-fluent2 0.1.1 → 0.1.2

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: cfd205a4607badc70a12ed702ad06db3005c1c62
4
- data.tar.gz: a66a0dc5c45de3b5d5432a4502a892653cd8dae8
3
+ metadata.gz: 4ae5249361f915661c8ccddf79499ad586813b48
4
+ data.tar.gz: f8802cd4a695fd7d2e156850bd4d4e63e42a4866
5
5
  SHA512:
6
- metadata.gz: 817fe10f9c866ab31936f6b1bb338d72b9cbed2be28d3cdb4430d4b09116ec8220674e7f60f3a59d1bd36e39d0825458804fd7b53c861e75aec808660b89e5a0
7
- data.tar.gz: 26e481d518d6eec4526febc91f8af92529104b18a2ddce70484e76c76e47a1a50024e4236c4cbfa6bdf84291fbed080e67ad5cdf95673f0018fab643be95d32f
6
+ metadata.gz: e02aa5a4bf9b26cb995d40572e3026b69277b4d4c683f89e8027993515b6814cf685290da60c47ecdaa298baaea9bcfd4fba52198a91522f57ef84369e8b1253
7
+ data.tar.gz: 429eac442dbd87ffc83fde2097afe377e7a3357b13b4c6d320e64fecee9f5b0fd2225d0111daf8e6797cc42e5347ce0524a0d1de4d38bef54e5a020708b16242
@@ -40,8 +40,9 @@ class LogStash::Codecs::Fluent2 < LogStash::Codecs::Base
40
40
 
41
41
  def decode(data)
42
42
  begin
43
- tag, _payload = MessagePack.unpack(data)
44
- @decoder.feed_each(_payload) do |epochtime, map|
43
+ @decoder.feed(data)
44
+ @decoder.each do |tag, _payload|
45
+ epochtime, map = MessagePack.unpack(_payload)
45
46
  event = LogStash::Event.new(map.merge(
46
47
  LogStash::Event::TIMESTAMP => LogStash::Timestamp.at(epochtime),
47
48
  "tags" => tag
@@ -1,7 +1,7 @@
1
1
  module Logstash
2
2
  module Codecs
3
3
  module Fluent2
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codecs-fluent2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky