Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect our logger up to the charset converters #291

Merged
merged 1 commit into from
Jul 20, 2018

Conversation

yaauie
Copy link
Contributor

@yaauie yaauie commented Jul 19, 2018

The LogStash::Util::Charset utility will attempt to send a warn to its
@logger instance variable when it encounters invalid encoding, but does not
take a logger to its constructor.

Failing to wire up a logger means that each time we attempt to convert a string
and fail to arrive at valid UTF-8, we send warn to NilClass, which raises
a NoMethodError.

The `LogStash::Util::Charset` utility will attempt to send a `warn` to its
`@logger` instance variable when it encounters invalid encoding, but does not
take a logger to its constructor.

Failing to wire up a logger means that each time we attempt to convert a string
and fail to arrive at valid UTF-8, we send `warn` to `NilClass`, which raises
a `NoMethodError`.
@elasticsearch-bot elasticsearch-bot self-assigned this Jul 19, 2018
Copy link

@danhermann danhermann left a comment

Choose a reason for hiding this comment

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

LGTM

@yaauie yaauie merged commit 49cb08f into logstash-plugins:master Jul 20, 2018
@yaauie yaauie deleted the charset-converter-logger branch July 20, 2018 17:06
yaauie added a commit to yaauie/logstash-input-jdbc that referenced this pull request Jul 20, 2018
yaauie added a commit to yaauie/logstash-input-jdbc that referenced this pull request Jul 20, 2018
yaauie added a commit to yaauie/logstash-input-jdbc that referenced this pull request Jul 21, 2018
yaauie added a commit that referenced this pull request Jul 23, 2018
@manzoor77
Copy link

manzoor77 commented Mar 26, 2023

An unknown error occurred sending a bulk request to Elasticsearch (will retry indefinitely) {:message=>""\xFF" from ASCII-8BIT to UTF-8", :exception=>LogStash::Json::GeneratorError, :backtrace=>["/Users/manzoorfaisal/Desktop/Laptop-Migration-2/logstash-7.17.4/logstash-core/lib/logstash/json.rb:43:in

can you please me to out from this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants