fluent-plugin-light-core 0.2.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af0f4865440862be4488030659ec9798b8eb9261bc2f9b95ee093a0b5de28387
4
- data.tar.gz: 5a46ab336bb472b47f6572d5836e6fbbfeea8075e19dfa6a6781d4e938ceddb7
3
+ metadata.gz: de6963e9c755b56d0c56eb2efe8d5144b66ea1463dd826c90ab71f5b65a72f37
4
+ data.tar.gz: f37743b84fc9a68940c488e06903a71725ffbb14a0a7a02c2203a19074f22940
5
5
  SHA512:
6
- metadata.gz: 045f2e53eba3fcf2ac10aa1a625e539bff38f6221c4a776d4c7a8b5250868e8bda1b0c1c59b07da1458c86787f07e6f9d568e4cb73562b7a4d261aaa0a42be1b
7
- data.tar.gz: 7272c0c901fd28c3aec6b9241060f8dab6e64f3cc91f40ab7a044f866b951e4b3aa4cc4ac9428029914e7104ca43840abceee5b88cae3e0d0a95928ed337311c
6
+ metadata.gz: 2d3fb8390aaf781220b4e288819c1f14c063a50c58ea850ef8b55ae63005ed3db03653b7e81f6cf349cfac04ca5259c2a4e2c73ec83003ed8290fefe9e187c1b
7
+ data.tar.gz: b89a10c9a2581a781536e06f4b7285c066ef1ec73f4a033bd646c7c2759e9de00a2a5227a5afa98ec406737390fd37c2212086a4cf33ccd7cab3addac4ec4787
@@ -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.1"
6
+ spec.version = "0.2.2"
7
7
  spec.authors = ["LIN LI"]
8
8
  spec.email = ["l.li@alphabets.cn"]
9
9
 
@@ -36,6 +36,7 @@ module Fluent
36
36
  config_param :lb_stream, :string, default: 'stderr'
37
37
  config_param :lb_code, :array, default: ['400', '500'], value_type: :string
38
38
  config_param :lb_elapsed, :float, default: 3
39
+ config_param :lb_ignore, :array, default: [], value_type: :string
39
40
 
40
41
  # MongoDB 异常 settings
41
42
  config_param :mongo_severity, :array, default: ['F', 'E'], value_type: :string
@@ -320,6 +321,11 @@ module Fluent
320
321
  end
321
322
 
322
323
  if tag == 'lb'
324
+
325
+ if @lb_ignore && record['path'] && @lb_ignore.include?(record['path'])
326
+ return record
327
+ end
328
+
323
329
  if @lb_stream && record['stream']
324
330
  send(tag, 'Stderror', record) if record['stream'] == @lb_stream
325
331
  end
data/sample/source.conf CHANGED
@@ -86,6 +86,7 @@
86
86
  lb_stream stderr
87
87
  lb_code 400,500
88
88
  lb_elapsed 5
89
+ lb_ignore /api/environment/list,/api/certificate/list?condition%5Bkind%5D=SSL
89
90
  app_status 500
90
91
  app_elapsed 5
91
92
  </filter>
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.1
4
+ version: 0.2.2
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-02-01 00:00:00.000000000 Z
11
+ date: 2021-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,7 +107,6 @@ files:
107
107
  - Rakefile
108
108
  - fluent-plugin-light-core.gemspec
109
109
  - lib/fluent/plugin/filter_light_core.rb
110
- - pkg/fluent-plugin-light-core-0.2.0.gem
111
110
  - sample/README.md
112
111
  - sample/source.conf
113
112
  - sample/udpsample.rb
Binary file