Skip to content

Commit 41020f9

Browse files
committed
in_forward: enable skip_invalid_event by default
Signed-off-by: Shizuo Fujita <[email protected]>
1 parent 25ff215 commit 41020f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/fluent/plugin/in_forward.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ForwardInput < Input
5555
desc 'Received chunk is dropped if it is larger than this value.'
5656
config_param :chunk_size_limit, :size, default: nil
5757
desc 'Skip an event if incoming event is invalid.'
58-
config_param :skip_invalid_event, :bool, default: false
58+
config_param :skip_invalid_event, :bool, default: true
5959

6060
desc "The field name of the client's source address."
6161
config_param :source_address_key, :string, default: nil

test/plugin/test_out_forward.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def try_write(chunk)
541541
end
542542

543543
test 'send_compressed_message_pack_stream_if_compress_is_gzip' do
544-
target_input_driver = create_target_input_driver
544+
target_input_driver = create_target_input_driver(conf: target_config + "skip_invalid_event false")
545545

546546
@d = d = create_driver(config + %[
547547
flush_interval 1s
@@ -571,7 +571,7 @@ def try_write(chunk)
571571
end
572572

573573
test 'send_compressed_message_pack_stream_if_compress_is_zstd' do
574-
target_input_driver = create_target_input_driver
574+
target_input_driver = create_target_input_driver(conf: target_config + "skip_invalid_event false")
575575

576576
@d = d = create_driver(config + %[
577577
flush_interval 1s

0 commit comments

Comments
 (0)