fluentd 1.4.2-x64-mingw32 → 1.5.0-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fluentd might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/.travis.yml +11 -5
- data/CHANGELOG.md +35 -0
- data/README.md +5 -0
- data/example/in_http.conf +3 -1
- data/lib/fluent/command/fluentd.rb +1 -1
- data/lib/fluent/compat/socket_util.rb +1 -1
- data/lib/fluent/log.rb +1 -1
- data/lib/fluent/plugin/filter_parser.rb +1 -1
- data/lib/fluent/plugin/in_forward.rb +11 -0
- data/lib/fluent/plugin/in_http.rb +32 -30
- data/lib/fluent/plugin/in_syslog.rb +16 -8
- data/lib/fluent/plugin/in_tail.rb +1 -1
- data/lib/fluent/plugin/in_tcp.rb +1 -1
- data/lib/fluent/plugin/in_udp.rb +1 -1
- data/lib/fluent/plugin/out_exec_filter.rb +1 -0
- data/lib/fluent/plugin/out_forward.rb +231 -16
- data/lib/fluent/plugin/parser_json.rb +7 -1
- data/lib/fluent/plugin/storage_local.rb +7 -2
- data/lib/fluent/plugin_helper/server.rb +8 -1
- data/lib/fluent/supervisor.rb +1 -1
- data/lib/fluent/version.rb +1 -1
- data/test/plugin/test_filter_parser.rb +1 -1
- data/test/plugin/test_in_forward.rb +64 -0
- data/test/plugin/test_in_syslog.rb +33 -4
- data/test/plugin/test_out_exec_filter.rb +6 -0
- data/test/plugin/test_out_forward.rb +209 -0
- data/test/plugin/test_parser_json.rb +24 -0
- metadata +3 -4
@@ -111,4 +111,28 @@ class JsonParserTest < ::Test::Unit::TestCase
|
|
111
111
|
assert_equal text, record['time']
|
112
112
|
end
|
113
113
|
end
|
114
|
+
|
115
|
+
def test_yajl_parse_io_with_buffer_smaller_than_input
|
116
|
+
parser = Fluent::Test::Driver::Parser.new(Fluent::Plugin::JSONParser)
|
117
|
+
parser.configure(
|
118
|
+
'keep_time_key' => 'true',
|
119
|
+
'json_parser' => 'yajl',
|
120
|
+
'stream_buffer_size' => 1,
|
121
|
+
)
|
122
|
+
text = "100"
|
123
|
+
|
124
|
+
waiting(5) do
|
125
|
+
rd, wr = IO.pipe
|
126
|
+
wr.write "{\"time\":\"#{text}\"}"
|
127
|
+
|
128
|
+
parser.instance.parse_io(rd) do |time, record|
|
129
|
+
assert_equal text.to_i, time.sec
|
130
|
+
assert_equal text, record['time']
|
131
|
+
|
132
|
+
# Once a record has been received the 'write' end of the pipe must be
|
133
|
+
# closed, otherwise the test will block waiting for more input.
|
134
|
+
wr.close
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
114
138
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluentd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -832,8 +832,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
832
832
|
- !ruby/object:Gem::Version
|
833
833
|
version: '0'
|
834
834
|
requirements: []
|
835
|
-
|
836
|
-
rubygems_version: 2.6.14.1
|
835
|
+
rubygems_version: 3.0.3
|
837
836
|
signing_key:
|
838
837
|
specification_version: 4
|
839
838
|
summary: Fluentd event collector
|