Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/fluent/plugin/in_beats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def run
rescue => e
log.error "unexpected error", :error => e.to_s
log.error_backtrace
router.emit_error_event(tag, time, record, e)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

record may be nil when user doesn't specify parser. Need to check record / map value.
In addition, need option to emit error event because emit event in this point is sometimes not useful, e.g. hard to recover broken value.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would we be checking or comparing the record/map value to? Could you give me a quick example of how we could check this accurately?

You make a good point about the config option and not always emitting errors. I'll see if I can add that code for the config quickly.

Thanks for your feedback!

end
}
end
Expand Down