fluent-plugin-aliyunoss 0.2.3 → 0.2.4
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 +4 -4
- data/README.md +16 -1
- data/fluent-plugin-aliyunoss.gemspec +1 -1
- data/lib/fluent/plugin/out_aliyunoss.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d89dc50dba60b2179471b80a8a049a6d0673e5a8
|
|
4
|
+
data.tar.gz: dc0a9378459936e1649f7e42a7073c690b647d34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8adb3ce3b7e6a880efedb346093af560052339be2e9a890a477b69fd43699ca99e01a6f342a1d74d2c9b3af377093e5d33aa9a61fa7d6371d264d6a91eaa52b0
|
|
7
|
+
data.tar.gz: c6176d9f55aa19f834e703b2b645e096f336bc4e9aa44adcbf939d9fe1b5ca0a8091fd0c6b35808557cc288d6c5df649a7445b31a7df57c821f15cd1a9292ad5
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[Fluentd](https://fluentd.org/) output plugin to do something.
|
|
4
4
|
|
|
5
5
|
aliyunoss output plugin buffers event logs in local file and upload it to aliyun oss periodically.
|
|
6
|
-
it is support fluentd>=v0.14.
|
|
6
|
+
it is support fluentd>=v0.14.10.
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
@@ -62,6 +62,7 @@ ex:
|
|
|
62
62
|
oss_endpoint xxx_endpoint
|
|
63
63
|
|
|
64
64
|
oss_path "project/${tag}/date=%Y-%m-%d/%{host}-worker#{ENV['SERVERENGINE_WORKER_ID']}-%Y%m%d%H%M%S-%{uuid}.gz"
|
|
65
|
+
store_as gz
|
|
65
66
|
<buffer tag,time>
|
|
66
67
|
@type file
|
|
67
68
|
path xxx
|
|
@@ -78,6 +79,20 @@ ex:
|
|
|
78
79
|
</match>
|
|
79
80
|
```
|
|
80
81
|
|
|
82
|
+
**If you want to use the storage format of orc, you need to install and configure some tools..**
|
|
83
|
+
|
|
84
|
+
``` in alpine3.8
|
|
85
|
+
apk add -U openjdk8-jre
|
|
86
|
+
wget https://search.maven.org/remotecontent?filepath=org/apache/orc/orc-tools/1.5.4/orc-tools-1.5.4-uber.jar -O /orc-tools.jar
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
``` vi /log4j.properties
|
|
90
|
+
log4j.rootLogger=FATAL,stdout
|
|
91
|
+
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
|
92
|
+
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
|
93
|
+
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
|
|
94
|
+
```
|
|
95
|
+
|
|
81
96
|
## Copyright
|
|
82
97
|
|
|
83
98
|
* Copyright(c) 2019- junjie
|
|
@@ -71,7 +71,7 @@ module Fluent
|
|
|
71
71
|
fake_path = "#{chunk_path}.json"
|
|
72
72
|
File::symlink(chunk_path, fake_path)
|
|
73
73
|
|
|
74
|
-
command = "java -jar /orc-tools.jar convert -o #{output_path} #{fake_path}"
|
|
74
|
+
command = "java -Dlog4j.configuration=file:/log4j.properties -jar /orc-tools.jar convert -o #{output_path} #{fake_path}"
|
|
75
75
|
res = system command
|
|
76
76
|
unless res
|
|
77
77
|
raise "failed to execute java -jar /orc-tools.jar command. status = #{$?}"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-aliyunoss
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- junjie
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-03-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|