fluent-plugin-label-router 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/fluent-plugin-label-router.gemspec +1 -1
- data/lib/fluent/plugin/out_label_router.rb +3 -3
- 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: 752b0fee18d27194a9e3173eaa789626d9a27e43
|
4
|
+
data.tar.gz: c99654113f3b085822b50ca9491cfb99e5e55b55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b28bb46f96513f43f029e956c06b4262ffc0afe50ab7e70a380acf87751081a827a42b0060349c31811bf1bf71c188bc21b6f726c4c0ee1b9f7d7cebb7705c53
|
7
|
+
data.tar.gz: 91a600e6105e278407b9d423ea7baf4547c2da741ecd044c9b4be0b7db436a032f6916e89688230c1376945db0c3379df73e8761cdc50b1577c4b3bd97369270
|
data/README.md
CHANGED
@@ -52,6 +52,8 @@ The configuration builds from `<route>` sections.
|
|
52
52
|
| namespace | Namespaces definition to filter the record. Ignored if left empty. | "" |
|
53
53
|
| @label | New @LABEL if selectors matched | nil |
|
54
54
|
| tag | New tag if selectors matched | "" |
|
55
|
+
| emit_mode | Emit mode. If `batch`, the plugin will emit events per labels matched. Enum: record, batch | batch |
|
56
|
+
| sticky_tags | Sticky tags will match only one record from an event stream. The same tag will be treated the same way | true |
|
55
57
|
|
56
58
|
## Examples
|
57
59
|
|
@@ -80,7 +80,7 @@ module Fluent
|
|
80
80
|
if @route_map.has_key?(tag)
|
81
81
|
# We already matched with this tag send events to the routers
|
82
82
|
@route_map[tag].each do |r|
|
83
|
-
r.emit_es(tag, es)
|
83
|
+
r.emit_es(tag, es.dup)
|
84
84
|
end
|
85
85
|
return
|
86
86
|
end
|
@@ -97,13 +97,13 @@ module Fluent
|
|
97
97
|
if @batch
|
98
98
|
event_stream[r].add(time, record)
|
99
99
|
else
|
100
|
-
r.emit(tag, time, record)
|
100
|
+
r.emit(tag, time, record.dup)
|
101
101
|
end
|
102
102
|
end
|
103
103
|
end
|
104
104
|
if @batch
|
105
105
|
event_stream.each do |r, es|
|
106
|
-
r.emit_es(tag, es)
|
106
|
+
r.emit_es(tag, es.dup)
|
107
107
|
end
|
108
108
|
end
|
109
109
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-label-router
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Banzai Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|