fluent-plugin-sumologic_output 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/fluent-plugin-sumologic_output.gemspec +2 -2
- data/lib/fluent/plugin/out_sumologic.rb +5 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97eada7f4ea132cde6d0ac4faefa45120a09aa52
|
4
|
+
data.tar.gz: 5ee2d4ed95c994b49f36f4dbca967397826da1db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7312d317c0affb314875663e43fc4103e0fc83eaaa0a522a0d84cbef9849eadb7c810e6dac0464644d45571fdbaf919f1252d7de6d4db3e23d3ee8579e6f19a8
|
7
|
+
data.tar.gz: d729412b8f6114cec33e1e90db22927ff28a1ee78a71e6fb78223b4f28a52875ba85fbeef14b3ab5a34fa332c978d86e4b493514b69a4c52dea4a3f2010b78b4
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
# fluent-plugin-
|
1
|
+
# fluent-plugin-sumologic_output, a plugin for [Fluentd](http://fluentd.org)
|
2
2
|
|
3
3
|
This plugin has been designed to output logs to [SumoLogic](http://www.sumologic.com) via a [HTTP collector endpoint](http://help.sumologic.com/Send_Data/Sources/02Sources_for_Hosted_Collectors/HTTP_Source)
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
gem install fluent-plugin-
|
7
|
+
gem install fluent-plugin-sumologic_output
|
8
8
|
|
9
9
|
## Configuration
|
10
10
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "fluent-plugin-sumologic_output"
|
7
|
-
gem.version = "0.0.
|
7
|
+
gem.version = "0.0.4"
|
8
8
|
gem.authors = ["Steven Adams"]
|
9
9
|
gem.email = ["stevezau@gmail.com"]
|
10
10
|
gem.description = %q{Output plugin to SumoLogic HTTP Endpoint}
|
@@ -23,4 +23,4 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.add_development_dependency "bundler", "~> 1.3"
|
24
24
|
gem.add_development_dependency "rake"
|
25
25
|
gem.add_runtime_dependency "fluentd"
|
26
|
-
end
|
26
|
+
end
|
@@ -9,7 +9,10 @@ class SumologicConnection
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def publish(raw_data, source_host=nil, source_category=nil, source_name=nil)
|
12
|
-
http.request(request_for(raw_data, source_host, source_category, source_name))
|
12
|
+
response = http.request(request_for(raw_data, source_host, source_category, source_name))
|
13
|
+
unless response.is_a?(Net::HTTPSuccess)
|
14
|
+
raise "Failed to send data to HTTP Source. #{response.code} - #{response.message}"
|
15
|
+
end
|
13
16
|
end
|
14
17
|
|
15
18
|
private
|
@@ -153,4 +156,4 @@ class Sumologic < Fluent::BufferedOutput
|
|
153
156
|
end
|
154
157
|
|
155
158
|
end
|
156
|
-
end
|
159
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-sumologic_output
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Adams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.6.11
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Output plugin to SumoLogic HTTP Endpoint
|