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

error_class=JSON::GeneratorError error="source sequence is illegal/malformed utf-8 #35

Open
rahmisacal opened this issue Jun 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rahmisacal
Copy link

Describe the bug

when i try to send some infrastructure logs from openshift container platform, i run into the error like "error_class=JSON::GeneratorError error="source sequence is illegal/malformed utf-8".

I added char_encoding utf-8 and char_encoding binary:utf-8 as record_modifier however I could not get rid of this issue. you can see the Fluentd configuration as below:

--
data:
fluent.conf: |-

@type forward
port 20001
bind 0.0.0.0

<filter *.**>
  @type record_modifier
  char_encoding utf-8
  <record>
    environment infra
  </record>
</filter>

<match **>
   @type vmware_loginsight
   scheme https
   ssl_verify false
   host ****
   port ****
   http_method post
   serializer json
   raise_on_error true
   http_conn_debug false
   <buffer>
     @type file
     path /var/log/fluent/
     timekey 60
     flush_thread_count 24
     queued_chunks_limit_size 2048
     chunk_limit_size 16MB
     retry_type periodic
     retry_forever true
     retry_wait 5
     timekey_wait 0
   </buffer>
</match>

In addition I have no any problem when sending application logs and audit logs for now, only when sending infrastructure logs.

Reproduction steps

  1. forward infrastructure logs to fluentd
  2. send infrastructure logs with Fluentd to VMware loginsight
  3. see this error message
    ...

Expected behavior

roughly a month ago, i have no any case when sending infrastructure logs with the same configuration but now I can not send infrastructure logs

Additional context

No response

@rahmisacal rahmisacal added the bug Something isn't working label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant