fluent-plugin-light-core 0.2.5 → 0.2.9

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
  SHA256:
3
- metadata.gz: 840e2f50ffd4383b36db2e72443db1161a9252bf04e4eb305d721af1ce31bb64
4
- data.tar.gz: b9bf12844a61596b32252fa36266a1a9e875f8314d087993d94874993a698ad3
3
+ metadata.gz: 5144ababaafd02b252534db4f948037d55fb63b688eaf2f243eb085215fdd09b
4
+ data.tar.gz: 2c34efb8b2cea7ff556d5bdc21e927251fe8920b28ee6e39cb20da7afed5ea4d
5
5
  SHA512:
6
- metadata.gz: d67d38209e5ad74bf70a9ff7b4cb9949072c9009632616ad8ba88cb50e49fd2f3dd207e7e5eda1e304d416c3dd3ecfaa88567568ccfdda477f7e2da5491e7e27
7
- data.tar.gz: f6ed9b675e53d81e54c603972a3e8ba75b6218626fd17f8cb21ab75a89f4644d6e8973d046e6aec4f776cc5c3b1221b660faf797906be01d136efb88d35ea48d
6
+ metadata.gz: db8615ee2d064865a3e570b1d26f58fd2cd1db6febb5bcbb745579ed3e4fab0278447cd2c3cde07c2f19b8863f34bc645a55137dccbb63667fcdb08fed9692ad
7
+ data.tar.gz: e4b9146e96aadc71f60e2040772806a84f0174a2d2d945f84708e795a547db9f3dc46aea944334adc0b5c5103b3677854b62160472c12cdd49e91bf79dae1cf3
@@ -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-light-core"
6
- spec.version = "0.2.5"
6
+ spec.version = "0.2.9"
7
7
  spec.authors = ["LIN LI"]
8
8
  spec.email = ["l.li@alphabets.cn"]
9
9
 
@@ -257,11 +257,6 @@ module Fluent
257
257
 
258
258
  if tag == 'app'
259
259
 
260
- if @app_stream && record['stream']
261
- message = 'Stream error' + record['stream']
262
- send(tag, message, record) if record['stream'] == @app_stream
263
- end
264
-
265
260
  if @app_message.length > 0 && record['message']
266
261
  @app_message.each do |pattern|
267
262
  if pattern.match(record['message'])
@@ -328,9 +323,8 @@ module Fluent
328
323
 
329
324
  # 发送UDP请求
330
325
  def send(tag, message, record)
331
- log.debug('send udp notice')
332
- encoded = message.force_encoding(Encoding::UTF_8)
333
- Sentry.capture_message(encoded, :extra => record, :tags => {'log' => tag}) rescue log.warn(encoded)
326
+ Sentry.capture_message(message, :extra => record, :tags => {'log' => tag})
327
+ log.info('msg has been sent to sentry : ', message)
334
328
  end
335
329
 
336
330
  # 转数字
data/sample/README.md CHANGED
@@ -47,3 +47,19 @@ Initialized empty Git repository in /Users/lilin/developer/light/fluent-plugin-l
47
47
 
48
48
  bundle install
49
49
  会修改Gemfile.lock文件
50
+
51
+
52
+ ## 在Linxu上运行
53
+
54
+ - 进入fluentd容器, 安装依赖
55
+ $ yum groupinstall 'Development Tools'
56
+ $ yum install rubygems ruby-devel
57
+
58
+ - 下载代码, 安装依赖
59
+ $ git clone http://git.alphabets.cn/light/fluent-plugin-light-core.git
60
+ $ cd fluent-plugin-light-core
61
+ $ gem install bundler:1.17.2
62
+ $ bundler install
63
+
64
+ - 运行代码
65
+ $ rm -f sample/*.pos && fluentd -c sample/source.conf -p lib/fluent/plugin
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-light-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - LIN LI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-19 00:00:00.000000000 Z
11
+ date: 2021-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler