fluent-plugin-splunkapi 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,12 +3,13 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |gem|
|
|
5
5
|
gem.name = "fluent-plugin-splunkapi"
|
|
6
|
-
gem.version = "0.1.
|
|
6
|
+
gem.version = "0.1.5"
|
|
7
7
|
gem.authors = ["Keisuke Nishida"]
|
|
8
8
|
gem.email = ["knishida@bizmobile.co.jp"]
|
|
9
|
-
gem.
|
|
10
|
-
gem.
|
|
11
|
-
gem.homepage = ""
|
|
9
|
+
gem.summary = %q{Splunk output plugin (REST API / Storm API) for Fluent event collector}
|
|
10
|
+
gem.description = %q{Splunk output plugin for Fluent event collector. This plugin supports Splunk REST API and Splunk Storm API.}
|
|
11
|
+
gem.homepage = "https://github.com/k24d/fluent-plugin-splunkapi"
|
|
12
|
+
gem.license = 'Apache License, Version 2.0'
|
|
12
13
|
|
|
13
14
|
gem.files = `git ls-files`.split($/)
|
|
14
15
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
@@ -91,12 +91,13 @@ class SplunkAPIOutput < BufferedOutput
|
|
|
91
91
|
}
|
|
92
92
|
when 'text'
|
|
93
93
|
@formatter = lambda { |record|
|
|
94
|
-
|
|
95
|
-
record.
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
# NOTE: never modify 'record' directly
|
|
95
|
+
record_copy = record.dup
|
|
96
|
+
record_copy.delete('message')
|
|
97
|
+
if record_copy.length == 0
|
|
98
|
+
record['message']
|
|
98
99
|
else
|
|
99
|
-
"[#{record_to_kvp(
|
|
100
|
+
"[#{record_to_kvp(record_copy)}] #{record['message']}"
|
|
100
101
|
end
|
|
101
102
|
}
|
|
102
103
|
end
|
|
@@ -142,7 +143,7 @@ class SplunkAPIOutput < BufferedOutput
|
|
|
142
143
|
end
|
|
143
144
|
|
|
144
145
|
record.delete('time')
|
|
145
|
-
event = time_str
|
|
146
|
+
event = "#{time_str}#{@formatter.call(record)}\n"
|
|
146
147
|
|
|
147
148
|
[tag, event].to_msgpack
|
|
148
149
|
end
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 0.1.
|
|
8
|
+
- 5
|
|
9
|
+
version: 0.1.5
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Keisuke Nishida
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2013-07-
|
|
17
|
+
date: 2013-07-28 00:00:00 +09:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -65,7 +65,7 @@ dependencies:
|
|
|
65
65
|
version: "0"
|
|
66
66
|
type: :runtime
|
|
67
67
|
version_requirements: *id004
|
|
68
|
-
description: Splunk output plugin for Fluent event collector
|
|
68
|
+
description: Splunk output plugin for Fluent event collector. This plugin supports Splunk REST API and Splunk Storm API.
|
|
69
69
|
email:
|
|
70
70
|
- knishida@bizmobile.co.jp
|
|
71
71
|
executables: []
|
|
@@ -85,9 +85,9 @@ files:
|
|
|
85
85
|
- test/helper.rb
|
|
86
86
|
- test/plugin/test_out_splunkapi.rb
|
|
87
87
|
has_rdoc: true
|
|
88
|
-
homepage:
|
|
89
|
-
licenses:
|
|
90
|
-
|
|
88
|
+
homepage: https://github.com/k24d/fluent-plugin-splunkapi
|
|
89
|
+
licenses:
|
|
90
|
+
- Apache License, Version 2.0
|
|
91
91
|
post_install_message:
|
|
92
92
|
rdoc_options: []
|
|
93
93
|
|
|
@@ -113,7 +113,7 @@ rubyforge_project: fluent-plugin-splunkapi
|
|
|
113
113
|
rubygems_version: 1.3.6
|
|
114
114
|
signing_key:
|
|
115
115
|
specification_version: 3
|
|
116
|
-
summary: Splunk output plugin for Fluent event collector
|
|
116
|
+
summary: Splunk output plugin (REST API / Storm API) for Fluent event collector
|
|
117
117
|
test_files:
|
|
118
118
|
- test/helper.rb
|
|
119
119
|
- test/plugin/test_out_splunkapi.rb
|