fluent-plugin-norikra 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -1
- data/README.md +6 -6
- data/fluent-plugin-norikra.gemspec +2 -2
- data/lib/fluent/plugin/norikra/input.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3686a8748eab4349b0c16a34dc8078a486e41d6e
|
4
|
+
data.tar.gz: cfc24bc0a34ff771dc6dcb9c067f264d751114c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e379762a9d2a7becd045b33d84e7300241d6b8e6ba25c90f6aa8dfe665967ad24473501d2ca21f49a08715f528b5e2014d466ac8161e84aaea32b87c7167ba62
|
7
|
+
data.tar.gz: c42fb51f3d3ad44bdfd777695baf302adac2f513ec2c1c5f8414307b5221ed51c321d2a5fca8366081d44a44cc4275827bf6b189ab1f98c3032e7ed5d4c3afe6
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -40,7 +40,7 @@ For variations, see `example` directory.
|
|
40
40
|
Sends events to remote Norikra server. Minimal configurations are:
|
41
41
|
```apache
|
42
42
|
<match data.*>
|
43
|
-
type
|
43
|
+
@type norikra
|
44
44
|
norikra norikra.server.local:26571
|
45
45
|
|
46
46
|
remove_tag_prefix data
|
@@ -52,7 +52,7 @@ NorikraOutput plugin opens Norikra's target for newly incoming tags. You can spe
|
|
52
52
|
|
53
53
|
```apache
|
54
54
|
<match data.*>
|
55
|
-
type
|
55
|
+
@type norikra
|
56
56
|
norikra norikra.server.local:26571
|
57
57
|
|
58
58
|
target_map_tag true # fluentd's tag -> norikra's target
|
@@ -92,7 +92,7 @@ If fluentd's events has so many variations of sets of fields, you can specify no
|
|
92
92
|
|
93
93
|
```apache
|
94
94
|
<match data.*>
|
95
|
-
type
|
95
|
+
@type norikra
|
96
96
|
norikra norikra.server.local:26571
|
97
97
|
|
98
98
|
target_map_tag true # fluentd's tag 'data.event' -> norikra's target 'event'
|
@@ -117,7 +117,7 @@ Fetch events from Norikra server, and emits these into Fluentd itself. NorikraIn
|
|
117
117
|
Minimal configurations:
|
118
118
|
```apache
|
119
119
|
<source>
|
120
|
-
type
|
120
|
+
@type norikra
|
121
121
|
norikra norikra.server.local:26571
|
122
122
|
<fetch>
|
123
123
|
method sweep
|
@@ -135,7 +135,7 @@ Minimal configurations:
|
|
135
135
|
Available `<fetch>` methods are `event` and `sweep`. `target` parameter is handled as query name for `event`, and as query group name for `sweep`.
|
136
136
|
```apache
|
137
137
|
<source>
|
138
|
-
type
|
138
|
+
@type norikra
|
139
139
|
norikra norikra.server.local:26571
|
140
140
|
<fetch>
|
141
141
|
method event
|
@@ -170,7 +170,7 @@ If you runs Norikra as standalone process, better configurations are to use Nori
|
|
170
170
|
Configuration example to receive tags like `event.foo` and send norikra's target `foo`, and get count of its records per minute, and per hour with built-in Norikra server:
|
171
171
|
```apache
|
172
172
|
<match event.*>
|
173
|
-
type
|
173
|
+
@type norikra_filter
|
174
174
|
<server>
|
175
175
|
path /home/username/.rbenv/versions/jruby-1.7.4/bin/norikra
|
176
176
|
# opts -Xmx2g # options of 'norikra start'
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "fluent-plugin-norikra"
|
5
|
-
spec.version = "0.
|
5
|
+
spec.version = "0.4.0"
|
6
6
|
spec.authors = ["TAGOMORI Satoshi"]
|
7
7
|
spec.email = ["tagomoris@gmail.com"]
|
8
8
|
spec.description = %q{process events on fluentd with SQL like query, with built-in Norikra server if needed.}
|
9
9
|
spec.summary = %q{Fluentd plugin to do CEP with norikra}
|
10
10
|
spec.homepage = "https://github.com/norikra/fluent-plugin-norikra"
|
11
|
-
spec.license = "
|
11
|
+
spec.license = "Apache-2.0"
|
12
12
|
|
13
13
|
spec.files = `git ls-files`.split($/)
|
14
14
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
@@ -96,7 +96,7 @@ module Fluent::NorikraPlugin
|
|
96
96
|
next unless event_array
|
97
97
|
event_array.each do |time,event|
|
98
98
|
begin
|
99
|
-
|
99
|
+
router.emit(tag, time, event)
|
100
100
|
rescue => e
|
101
101
|
log.error "failed to emit event from norikra query", :norikra => "#{@host}:#{@port}", :error => e.class, :message => e.message, :tag => tag, :record => event
|
102
102
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-norikra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: norikra-client
|
@@ -126,7 +126,7 @@ files:
|
|
126
126
|
- test/test_target.rb
|
127
127
|
homepage: https://github.com/norikra/fluent-plugin-norikra
|
128
128
|
licenses:
|
129
|
-
-
|
129
|
+
- Apache-2.0
|
130
130
|
metadata: {}
|
131
131
|
post_install_message:
|
132
132
|
rdoc_options: []
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.5.1
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Fluentd plugin to do CEP with norikra
|
@@ -158,3 +158,4 @@ test_files:
|
|
158
158
|
- test/test_query_generator.rb
|
159
159
|
- test/test_record_filter.rb
|
160
160
|
- test/test_target.rb
|
161
|
+
has_rdoc:
|