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 +4 -4
- data/lib/logstash/codecs/fluent2.rb +3 -2
- data/lib/logstash/codecs/fluent2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ae5249361f915661c8ccddf79499ad586813b48
|
4
|
+
data.tar.gz: f8802cd4a695fd7d2e156850bd4d4e63e42a4866
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
44
|
-
@decoder.
|
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
|