fluent-plugin-openstack 0.0.5 → 0.0.6

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
2
  SHA256:
3
- metadata.gz: 0bf7e0376741874af9bd281d2fc21afbff304fd22ef772806019e62e64e15085
4
- data.tar.gz: 17c1f13fadf19580bbf16eff3b44e05b557d9d3b597869ee672658cb1a9a189b
3
+ metadata.gz: f1a08aa243c0cb2b6b0694349e925a0dd9407cd55807ae7e229360f350f0cbee
4
+ data.tar.gz: 9857a53cc139247287e163a448816daf40add660696118aec16ed00c8faccd3b
5
5
  SHA512:
6
- metadata.gz: 651d60c944f2681b785d42259fbbf2e9911aaca2768e6d4a2813a478c777089e7a866330e34c8d08da968836fb28652deb3a60adef7ad791b483a64567295bfe
7
- data.tar.gz: 0e72a846daa2a3f5d76385d9797d57fe7104650cb3ffdd71421d20478626b28ab4b1c48055a9702d29ad0ff9b9b144d3642408c162c2a76b2c51ebc4ffe74be4
6
+ metadata.gz: 320a8cb336ebb3a65fb70a74a84eeb09047b82e86cf92fd5c148fd15c1e4f263fd3ecb1eed77872984ead3d458b41a9ac537f7bd4390fbcd91e1df78339d8004
7
+ data.tar.gz: 5852ce894c277805568581e7fb6adea78e9ab0b247e7e8c7215aa7f3bf2198177a300a95a96dfc5bb387048194ef3a150d45f50ac82abe0c303a30d4a53af910
data/README.md CHANGED
@@ -4,3 +4,31 @@
4
4
 
5
5
  This gem is based on hard work of: `https://github.com/yuuzi41/fluent-plugin-swift`.
6
6
  It is simplified and refactored version of this gem.
7
+
8
+
9
+ ### Usage
10
+
11
+ Use OpenStack environment variables to configure parameters dynamically:
12
+
13
+ ```
14
+ <match pattern>
15
+ @type swift
16
+
17
+ auth_url "#{ENV['OS_AUTH_URL']}"
18
+ auth_user "#{ENV['OS_USERNAME']}"
19
+ auth_api_key "#{ENV['OS_PASSWORD']}"
20
+ auth_tenant "#{ENV['OS_AUTH_TENANT']}"
21
+ auth_region "#{ENV['OS_REGION']}"
22
+ ssl_verify false
23
+
24
+ swift_container bridge_api_logs
25
+ swift_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
26
+
27
+ buffer_path /var/log/fluent/bra_sw
28
+ time_slice_format %Y%m%d-%H
29
+ buffer_type file
30
+ buffer_chunk_limit 1g
31
+ time_slice_wait 10m
32
+ buffer_queue_limit 1024
33
+ </match>
34
+ ```
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -154,7 +154,7 @@ module Fluent::Plugin
154
154
  time_slice_with_tz.call(metadata.timekey)
155
155
  end
156
156
 
157
- while check_object_exists(object: swift_path)
157
+ begin
158
158
  values_for_swift_object_chunk[chunk.unique_id] ||= {
159
159
  '%{hex_random}' => hex_random(chunk: chunk)
160
160
  }
@@ -185,7 +185,7 @@ module Fluent::Plugin
185
185
 
186
186
  i += 1
187
187
  previous_path = swift_path
188
- end
188
+ end while check_object_exists(object: swift_path)
189
189
 
190
190
  tmp = Tempfile.new('swift-')
191
191
  tmp.binmode
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-openstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - brissenden