fluent-plugin-oss 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 479e3eae96e9f6f94d41e0f9a4bd8ba126517f1b
4
- data.tar.gz: 4cf891a7f1917911a4b280ab1d46dc1739519aa6
2
+ SHA256:
3
+ metadata.gz: ac0de319fda6bfb5c391c637e13b0da730961c7811c8ceb56015199d488fae40
4
+ data.tar.gz: 18087c3e29b0455fd234a044e60f5f992e7db0ce43f27662da40eb73d17fcb97
5
5
  SHA512:
6
- metadata.gz: b059f115c4236d68ef55d8105fd1044e915d62be5f8707aa16199a27f6d9cb1ca66b6f74966c255757f669b2f4d0aabfe5d8ac0cc35be2009217dbfb5be42474
7
- data.tar.gz: d98ff286e683e6b5acc75a2e81b295fb318559c995f5699a03f30ccfdcd3d503a721185a65c736aa4f02e0a7257139844fb6657008f7d524a94433405e8baa52
6
+ metadata.gz: 4160a1c01232d07b714f00465ffd60e5c0473f71c22b550033106d436b737a8c77290a4ba36d790c3a368752a8c7d346022b8589610c5b5625daf4c03bb9c9a7
7
+ data.tar.gz: 341e2a19759791a77766b4c0d95c0cbf590ac81a8cc7b963dffff7d94216f5ee2ae0284f181b5836cfc536c7a86a07ab09f340305431abe89f2720b99f79525d
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # OSS plugin for [Fluentd](http://github.com/fluent/fluentd)
2
2
 
3
+ ## Install
4
+ ```
5
+ gem install fluent-plugin-oss
6
+ ```
7
+
3
8
  ## Output: Configuration
4
9
 
5
10
  ```
@@ -12,8 +17,31 @@
12
17
  oss_object_key_format "%{time_slice}/%{host}-%{uuid}.%{file_ext}"
13
18
 
14
19
  buffer_path /var/log/fluent/myapp
20
+ buffer_chunk_limit 256m
15
21
  time_slice_format %Y%m%d
16
22
  time_slice_wait 10m
17
- time_format %Y%m%dT%H%M%S%z
23
+ num_threads 8
24
+ </match>
25
+ ```
26
+
27
+ You can also use it with the forest plugin.
28
+
29
+ ```
30
+ <match **>
31
+ @type forest
32
+ subtype oss
33
+ <template>
34
+ oss_key_id xxx
35
+ oss_key_secret xxx
36
+ oss_bucket xxx
37
+ oss_endpoint xxx
38
+ oss_object_key_format "${tag}/%{time_slice}/%{host}-%{uuid}.%{file_ext}"
39
+
40
+ buffer_path /var/log/fluent/myapp
41
+ buffer_chunk_limit 256m
42
+ time_slice_format %Y%m%d
43
+ time_slice_wait 10m
44
+ num_threads 8
45
+ </template>
18
46
  </match>
19
47
  ```
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -57,6 +57,7 @@ module Fluent
57
57
 
58
58
  def start
59
59
  super
60
+ Aliyun::Common::Logging.set_log_file('/dev/null')
60
61
  @client = Aliyun::OSS::Client.new(
61
62
  :endpoint => @oss_endpoint,
62
63
  :access_key_id => @oss_key_id,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-oss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sjtubreeze
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-31 00:00:00.000000000 Z
11
+ date: 2019-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.5.2
101
+ rubygems_version: 2.7.6
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Aliyun oss output plugin for Fluentd event collector