fluent-plugin-aliyunoss 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a0950bff68f15bd78b770624c723b83aeb28271
4
- data.tar.gz: df8e802b39896614b4f90f916dd61e3349fbeb87
3
+ metadata.gz: d89dc50dba60b2179471b80a8a049a6d0673e5a8
4
+ data.tar.gz: dc0a9378459936e1649f7e42a7073c690b647d34
5
5
  SHA512:
6
- metadata.gz: e582441fa75a1546df89e21d4953f1187d514b6c7b7452ad1b0ae4f84bd31923e8cd434e15e9e1f622ddaffa3d79808aec22f1d1c35bd7bf22cb8bd4607fef88
7
- data.tar.gz: a5d7f8cae1002f4d8941b24fde46528474dfb0ccceb09ec72a823acdb426bf664a8d9a9d4a18f5e3aae89233fb6c1d84cc54fb1ea89e05414a8fa876caf8dab1
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.0.
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
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-aliyunoss"
6
- spec.version = "0.2.3"
6
+ spec.version = "0.2.4"
7
7
  spec.authors = ["junjie"]
8
8
  spec.email = ["junjzh0205@gmail.com"]
9
9
 
@@ -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.3
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-02-28 00:00:00.000000000 Z
11
+ date: 2019-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler