fluent-plugin-openstack 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_swift.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1a08aa243c0cb2b6b0694349e925a0dd9407cd55807ae7e229360f350f0cbee
|
4
|
+
data.tar.gz: 9857a53cc139247287e163a448816daf40add660696118aec16ed00c8faccd3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|