fluent-plugin-logzio 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/fluent-plugin-logzio.gemspec +1 -1
- data/lib/fluent/plugin/out_logzio_buffered.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4cf63753358bece1ea067033d5195d69f382c48
|
4
|
+
data.tar.gz: 368b2d957c705adf4c3eb6e8f64609f3edec2861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f11f60bd779d9322424b0257145244c542147224a3b404ff84985e84636ffc6b19b1c41a582efc0ee1afc9ef0444ba586c65020a4bcde474494109bacacb2797
|
7
|
+
data.tar.gz: f450b07abf55ef19a490cff3c6f317c0071b9e666a84f4c535c80782b3d636d88ae2934486d8fe5e7c0fa943140333bc6522b92ba387ec6fbe31113df6639348
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/fluent-plugin-logzio.svg)](https://badge.fury.io/rb/fluent-plugin-logzio)
|
2
|
+
|
1
3
|
Logz.io plugin for [Fluentd](http://www.fluentd.org)
|
2
4
|
=============
|
3
5
|
With fluent-plugin-logzio you will be able to use [Logz.io](http://logz.io) as output the logs you collect with Fluentd.
|
@@ -32,4 +34,5 @@ If you absolutly must, use the non-buffered plugin (we really recommend using th
|
|
32
34
|
## Parameters
|
33
35
|
* **endpoint_url** the url to Logz.io input where `xxx-xxxx...` is your Logz.io access token, and `my_type` is the type of your logs in logz.io
|
34
36
|
* **output_include_time** should the appender add a timestamp to your logs on their process time. (recommended)
|
35
|
-
* **output_include_tags** should the appender add the fluentd tag to the document, called "fluentd_tag"
|
37
|
+
* **output_include_tags** should the appender add the fluentd tag to the document, called "fluentd_tag"
|
38
|
+
* **http_idle_timeout** timeout in seconds that the http persistent connection will stay open without traffic
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'fluent-plugin-logzio'
|
7
|
-
s.version = '0.0.
|
7
|
+
s.version = '0.0.6'
|
8
8
|
s.authors = ['Yury Kotov', 'Roi Rav-Hon']
|
9
9
|
s.email = ['bairkan@gmail.com', 'roi@logz.io']
|
10
10
|
s.homepage = 'https://github.com/logzio/fluent-plugin-logzio'
|
@@ -5,6 +5,7 @@ module Fluent
|
|
5
5
|
config_param :output_include_time, :bool, default: true
|
6
6
|
config_param :output_include_tags, :bool, default: true
|
7
7
|
config_param :retry_count, :integer, default: 3 # How many times to resend failed bulks. Undocumented because not suppose to be changed
|
8
|
+
config_param :http_idle_timeout, :integer, default: 5
|
8
9
|
|
9
10
|
unless method_defined?(:log)
|
10
11
|
define_method('log') { $log }
|
@@ -21,6 +22,8 @@ module Fluent
|
|
21
22
|
@uri = URI @endpoint_url
|
22
23
|
@http = Net::HTTP::Persistent.new 'fluent-plugin-logzio', :ENV
|
23
24
|
@http.headers['Content-Type'] = 'text/plain'
|
25
|
+
@http.idle_timeout = @http_idle_timeout
|
26
|
+
@http.socket_options << [Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, 1]
|
24
27
|
$log.debug "Started logzio shipper.."
|
25
28
|
end
|
26
29
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-logzio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yury Kotov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: net-http-persistent
|