fluent-plugin-loggly 0.0.6 → 0.0.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65d0006313ddc9fcc95212520906f19f4a04d95e
|
4
|
+
data.tar.gz: 81608d38ba31a5a3f18d79862cb91405fdf367a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97ef91d3eb063eb6b7be9e88761e8a357741440c8527ae1d907befe32b96b3c36e1d6fd2d33ebd0d81b0259c218eb724ebdf44e76f49611546bf131c0eb41774
|
7
|
+
data.tar.gz: d57aedf80c60f487b1eced7af2a15e42adf4845a6f0a6a52896a2d5b34729871e27fff0314001574daae23e77c42a734b3a42c59468dd21f176b07fb590d27d4
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-loggly"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.7"
|
7
7
|
s.authors = ["Patrik Antonsson"]
|
8
8
|
s.email = ["patant@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/patant/fluent-plugin-loggly"
|
@@ -18,4 +18,5 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.3")
|
20
20
|
s.add_dependency('net-http-persistent', '>= 2.7')
|
21
|
+
s.add_dependency('yajl-ruby', '>= 1.0')
|
21
22
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
=begin
|
2
|
-
|
3
|
-
Copyright (C) 2012 Patrik Antonsson
|
2
|
+
|
3
|
+
Copyright (C) 2012 Patrik Antonsson
|
4
4
|
|
5
5
|
Licensed to the Apache Software Foundation (ASF) under one
|
6
6
|
or more contributor license agreements. See the NOTICE file
|
@@ -45,7 +45,7 @@ class LogglyOutput < Fluent::Output
|
|
45
45
|
def emit(tag, es, chain)
|
46
46
|
chain.next
|
47
47
|
es.each {|time,record|
|
48
|
-
record_json = record
|
48
|
+
record_json = Yajl::Encoder.encode(record)
|
49
49
|
$log.debug "Record sent #{record_json}"
|
50
50
|
post = Net::HTTP::Post.new @uri.path
|
51
51
|
post.body = record_json
|
@@ -55,7 +55,7 @@ class LogglyOutputBuffred < Fluent::BufferedOutput
|
|
55
55
|
records = []
|
56
56
|
chunk.msgpack_each {|tag,time,record|
|
57
57
|
record['timestamp'] ||= Time.at(time).iso8601 if @output_include_time
|
58
|
-
records.push(record
|
58
|
+
records.push(Yajl::Encoder.encode(record))
|
59
59
|
}
|
60
60
|
$log.debug "#{records.length} records sent"
|
61
61
|
post = Net::HTTP::Post.new @uri.path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-loggly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrik Antonsson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http-persistent
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: yajl-ruby
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
27
41
|
description: Fluentd pluging (fluentd.org) for output to loggly (loggly.com)
|
28
42
|
email:
|
29
43
|
- patant@gmail.com
|
@@ -60,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
74
|
version: '0'
|
61
75
|
requirements: []
|
62
76
|
rubyforge_project: fluent-plugin-loggly
|
63
|
-
rubygems_version: 2.
|
77
|
+
rubygems_version: 2.4.6
|
64
78
|
signing_key:
|
65
79
|
specification_version: 4
|
66
80
|
summary: Fluentd plugin for output to loggly
|