fluent-plugins-nursery / fluent-plugin-remote_syslog

Fluentd plugin for output to remote syslog serivce (e.g. Papertrail)
https://github.com/dlackty/fluent-plugin-remote_syslog
MIT License
68 stars 53 forks source link

fix illegal/malformed utf-8 #12

Closed flaviotorres closed 1 year ago

flaviotorres commented 7 years ago

fix illegal/malformed utf-8

source sequence is illegal/malformed utf-8, ignored error_class=JSON::GeneratorError tag="logs" record="{\"message \"=>\"19-08-2016 11:30:43 sem altera\xE7\xF5es\"}"

it should be: "sem alterações"

dmatosl commented 7 years ago

+1

lhoss commented 7 years ago

any reason not to merge this obvious fix ?!

daipom commented 1 year ago

note: issue-#11

daipom commented 1 year ago

Sorry for not responding for so long.

I have confirmed that this problem is solved in the latest version. So I close this now. Thanks for contributing!

Config:

  <source>
    @type sample
    tag "test"
    sample {"message":"para Em preparação"}
    rate 1
  </source>
  <match test.**>
    @type remote_syslog
    host "localhost"
    port 22222
    <buffer>
      flush_mode immediate
    </buffer>
  </match>
  <source>
    @type syslog
    tag "receive"
    port 22222
    bind "localhost"
  </source>
  <match receive.**>
    @type stdout
  </match>

Output log:

2022-09-28 11:58:04.000000000 +0900 receive.user.notice: {"host":"daipom-Thirdwave-PC","ident":"fluentd","message":"message:para Em preparação"}