fluent-plugin-light-core 0.2.5 → 0.2.9
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/fluent-plugin-light-core.gemspec +1 -1
- data/lib/fluent/plugin/filter_light_core.rb +2 -8
- data/sample/README.md +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5144ababaafd02b252534db4f948037d55fb63b688eaf2f243eb085215fdd09b
|
4
|
+
data.tar.gz: 2c34efb8b2cea7ff556d5bdc21e927251fe8920b28ee6e39cb20da7afed5ea4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db8615ee2d064865a3e570b1d26f58fd2cd1db6febb5bcbb745579ed3e4fab0278447cd2c3cde07c2f19b8863f34bc645a55137dccbb63667fcdb08fed9692ad
|
7
|
+
data.tar.gz: e4b9146e96aadc71f60e2040772806a84f0174a2d2d945f84708e795a547db9f3dc46aea944334adc0b5c5103b3677854b62160472c12cdd49e91bf79dae1cf3
|
@@ -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
|
-
|
332
|
-
|
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.
|
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-
|
11
|
+
date: 2021-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|