fluent-plugin-sndacs 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -0
- data/fluent-plugin-sndacs.gemspec +1 -1
- data/lib/fluent/plugin/out_sndacs.rb +2 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
Sndacs output plugin for Fluent event collector
|
2
2
|
=====
|
3
3
|
|
4
|
+
Installation
|
5
|
+
-----
|
6
|
+
|
7
|
+
Simply use RubyGems:
|
8
|
+
```
|
9
|
+
gem install fluent-plugin-sndacs
|
10
|
+
```
|
11
|
+
|
4
12
|
Configuration
|
5
13
|
-----
|
6
14
|
|
@@ -11,6 +19,7 @@ Configuration
|
|
11
19
|
access_key_id YOUR_ACCESS_KEY
|
12
20
|
secret_access_key YOUR_SECRET_KEY
|
13
21
|
bucket YOUR_BUCKET
|
22
|
+
path logs/
|
14
23
|
buffer_path /var/log/fluent/sndacs
|
15
24
|
</match>
|
16
25
|
```
|
@@ -3,7 +3,7 @@ Gem::Specification.new do |gem|
|
|
3
3
|
gem.description = 'Sndacs output plugin for Fluent event collector'
|
4
4
|
gem.homepage = 'https://github.com/sparkle/fluent-plugin-sndacs'
|
5
5
|
gem.summary = gem.description
|
6
|
-
gem.version = '0.0.
|
6
|
+
gem.version = '0.0.3'
|
7
7
|
gem.authors = 'Sparkle'
|
8
8
|
gem.email = 'popeast@gmail.com'
|
9
9
|
gem.files = `git ls-files`.split("\n")
|
@@ -15,6 +15,7 @@ module Fluent
|
|
15
15
|
Encoding.default_internal = encoding
|
16
16
|
end
|
17
17
|
|
18
|
+
config_param :path, :string, :default => ''
|
18
19
|
config_param :access_key_id, :string
|
19
20
|
config_param :secret_access_key, :string
|
20
21
|
config_param :bucket, :string
|
@@ -39,7 +40,7 @@ module Fluent
|
|
39
40
|
def write(chunk)
|
40
41
|
i = 1
|
41
42
|
while true
|
42
|
-
object = @bucket_.objects.build("#{chunk.key}_#{i}.gz")
|
43
|
+
object = @bucket_.objects.build("#{@path}#{chunk.key}_#{i}.gz")
|
43
44
|
break unless object.exists?
|
44
45
|
i += 1
|
45
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-sndacs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|