{"action":"created","issue":{"url":"https://api.github.com/repos/rsyslog/rsyslog/issues/1117","repository_url":"https://api.github.com/repos/rsyslog/rsyslog","labels_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/1117/labels{/name}","comments_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/1117/comments","events_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/1117/events","html_url":"https://github.com/rsyslog/rsyslog/issues/1117","id":171311410,"number":1117,"title":"Sometimes Chinese garbled in rsyslog server","user":{"login":"beanhe","id":10845660,"avatar_url":"https://avatars.githubusercontent.com/u/10845660?v=3","gravatar_id":"","url":"https://api.github.com/users/beanhe","html_url":"https://github.com/beanhe","followers_url":"https://api.github.com/users/beanhe/followers","following_url":"https://api.github.com/users/beanhe/following{/other_user}","gists_url":"https://api.github.com/users/beanhe/gists{/gist_id}","starred_url":"https://api.github.com/users/beanhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beanhe/subscriptions","organizations_url":"https://api.github.com/users/beanhe/orgs","repos_url":"https://api.github.com/users/beanhe/repos","events_url":"https://api.github.com/users/beanhe/events{/privacy}","received_events_url":"https://api.github.com/users/beanhe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-16T02:47:25Z","updated_at":"2016-08-16T07:24:05Z","closed_at":null,"body":"I use rsyslog server to collect logs from all rsyslog clients , then server will send logs to elk. I have met garbled Chinese characters in rsyslog server, but when I go to client it's normal with same log messages. Here is the log example in rsyslog client:\r\n\r\n```\r\nAug 15 13:52:35 unstable-util-service-9adxp4yimtsjw jettyLog: 2016-08-15 13:52:33 INFO  LoggerFilter:85 - [200] /utils/bulletin {\"data\":[{\"bulletinId\":\"2016080300000006\",\"bulletinType\":2,\"top\":1,\"publish\":1,\"important\":0,\"source\":\"\",\"title\":\"点理财“注册送5000元体验金”活动重磅来袭！\",\"summery\":\"点理财平\r\n台一直奉行客户至上的准则，致力于为客户提供更好的投资体验。为回报广大投资用户的支持及信任，点理财平台>特举办“注册送5000元体验金”活动，活动于7月27日正式上线！体验金数量有限，五千万体验金送完为止。快来参与\r\n吧！\",\"content\":\"<p style=\\\"margin-top:0;margin-right:0;margin-bottom:32px;margin-left:0;text-indent:28px\\\"><span style=\\\"color: rgb(0, 0, 0); font-family: 微软雅黑, &#39;Microsoft YaHei&#39;; font-size: 16px;\\\"><span style=\\\"font-family: 微软雅黑, &#39;Microsoft YaHei&#39;; color: rgb(0, 0, 0); background: rgb(255, 255, 255);\\\">点理财平台一直奉行客户至上的准则，致力于为客户提供更好的投资体验。</span><span style=\\\"font-family: 微软雅黑, &#39;Microsoft YaHei&#39;; color: rgb(0, 0, 0); letter-spacing: 0px; background: rgb(255, 255, 255);\\\">为回报广大投资用户的支持及信任，点理财平台特举办“</span><span style=\\\"font-family: 微软雅黑, &#39;Microsoft YaHei&#39;; color: rgb(255, 0, 0);\\\"><strong><span style=\\\"font-family: 微软雅黑, &#39;Microsoft YaHei&#39;; color: rgb(0, 0, 0); letter-spacing: 0px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;\\\">注册送</span></strong><strong><span style=\\\"font-family: 微软雅黑, &#39;Microsoft YaHei&#39;; color: rgb(0, 0, 0); letter-spacing: 0px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;\\\">5000元体验金</span></strong></span><span style=\\\"font-family: 微软雅黑, &#39;Microsoft YaHei&#39;; color: rgb(0, 0, 0); letter-spacing: 0px; background: rgb(255, 255, 255);\\\">”活\r\n动，活动于7月27日正式上线！体验金数量有限，五千万体验金送完为止。快来参与吧！</span><span style=\\\"font-family: 微软雅黑, &#39;Microsoft YaHei&#39;; color: rgb(0, 0, 0); letter-spacing: 0px; text-indent: 32px; background-color: rgb(255, 255, 255);\\\">&nbsp;</span></span><img src=\\\"https://unstable.dianlc.com/G1/M00/00/41/ChEJF1ehnr2Ad87wAASAmVoEDXo226.png\\\" title=\\\"\\\"\r\n.....(not full)\r\n```\r\nAnd when the log was sent to server, it looked like below:\r\n\r\n```\r\nAug 15 13:52:35 unstable-util-service-9adxp4yimtsjw jettyLog: 2016-08-15 13:52:33 INFO  LoggerFilter:85 - [200] /utils/bulletin {\"data\":[{\"bulletinId\":\"2016080300000006\",\"bulletinType\":2,\"top\":1,\"publish\":1,\"important\":0,\"source\":\"\",\"title\":\"ç<82>¹ç<90><86>è´¢â<80><9c>æ³¨å<86><8c>é<80><81>5000å<85><83>ä½<93>éª<8c>é<87><91>â<80><9d>æ´»å<8a>¨é<87><8d>ç£<85>æ<9d>¥è¢­ï¼<81>\",\"summery\":\"ç<82>¹ç<90><86>è´¢å¹³å<8f>°ä¸<80>ç<9b>´å¥<89>è¡<8c>å®¢æ<88>·è<87>³ä¸<8a>ç<9a><84>å<87><86>å<88><99>ï¼<8c>è<87>´å<8a><9b>äº<8e>ä¸ºå®¢æ<88>·æ<8f><90>ä¾<9b>æ<9b>´å¥½ç<9a><84>æ<8a><95>èµ<84>ä½<93>éª<8c>ã<80><82>ä¸ºå<9b><9e>æ<8a>¥å¹¿å¤§æ<8a><95>èµ<84>ç<94>¨æ<88>·ç<9a><84>æ<94>¯æ<8c><81>å<8f><8a>ä¿¡ä»»ï¼<8c>ç<82>¹ç<90><86>è´¢å¹³å<8f>°ç<89>¹ä¸¾å<8a><9e>â<80><9c>æ³¨å<86><8c>é<80><81>5000å<85><83>ä½<93>éª<8c>é<87><91>â<80><9d>æ´»å<8a>¨ï¼<8c>æ´»å<8a>¨äº<8e>7æ<9c><88>27æ<97>¥æ­£å¼<8f>ä¸<8a>çº¿ï¼<81>ä½<93>éª<8c>é<87><91>æ<95>°é<87><8f>æ<9c><89>é<99><90>ï¼<8c>äº<94>å<8d><83>ä¸<87>ä½<93>éª<8c>é<87><91>é<80><81>å®<8c>ä¸ºæ­¢ã<80><82>å¿«æ<9d>¥å<8f><82>ä¸<8e>å<90>§ï¼<81>\",\"content\":\"<p style=\\\"margin-top:0;margin-right:0;margin-bottom:32px;margin-left:0;text-indent:28px\\\"><span style=\\\"color: rgb(0, 0, 0); font-family: å¾®è½¯é<9b><85>é»<91>, &#39;Microsoft YaHei&#39;; font-size: 16px;\\\"><span style=\\\"font-family: å¾®è½¯é<9b><85>é»<91>, &#39;Microsoft YaHei&#39;; color: rgb(0, 0, 0); background: rgb(255, 255, 255);\\\">ç<82>¹ç<90><86>è´¢å¹³å<8f>°ä¸<80>ç<9b>´å¥<89>è¡<8c>å®¢æ<88>·è<87>³ä¸<8a>ç<9a><84>å<87><86>å<88><99>ï¼<8c>è<87>´å<8a><9b>äº<8e>ä¸ºå®¢æ<88>·æ<8f><90>ä¾<9b>æ<9b>´å¥½ç<9a><84>æ<8a><95>èµ<84>ä½<93>éª<8c>ã<80><82></span><span style=\\\"font-family: å¾®è½¯é<9b><85>é»<91>, &#39;Microsoft YaHei&#39;; color: rgb(0, 0, 0); letter-spacing: 0px; background: rgb(255, 255, 255);\\\">ä¸ºå<9b><9e>æ<8a>¥å¹¿å¤§æ<8a><95>èµ<84>ç<94>¨æ<88>·ç<9a><84>æ<94>¯æ<8c><81>å<8f><8a>ä¿¡ä»»ï¼<8c>ç<82>¹ç<90><86>è´¢å¹³å<8f>°ç<89>¹ä¸¾å<8a><9e>â<80><9c></span><span style=\\\"font-family: å¾®è½¯é<9b><85>é»<91>,\r\n......(not full)\r\n```\r\n\r\nHere are the configs in both server and client , Could anyone help ? Thanks in advance.\r\nRsyslog Server Config:\r\n```\r\ntemplate(name=\"json-template\"\r\n  type=\"list\") {\r\n        property(name=\"jsonmesg\")\r\n}\r\n*.*                         @10.17.9.55:10514;json-template\r\n```\r\n\r\n\r\nRsyslog Client Config:\r\n\r\n```\r\n$ModLoad imfile\r\n\r\n$InputFileName          /mnt/deploy/jetty-distribution-9.3.5.v20151012/logs/stderrout.log\r\n$InputFileReadMode      2\r\n$InputFileTag           jettyLog:\r\n$InputFileStateFile     stat-jetty-log\r\n$InputFileSeverity      info\r\n$InputFileFacility      local7\r\n$InputRunFileMonitor\r\n\r\n$InputFilePollInterval 5\r\n```\r\nRsyslog version on server:\r\n\r\n```\r\nrsyslogd 8.20.0, compiled with:\r\n\tPLATFORM:\t\t\t\tx86_64-pc-linux-gnu\r\n\tPLATFORM (lsb_release -d):\r\n\tFEATURE_REGEXP:\t\t\t\tYes\r\n\tGSSAPI Kerberos 5 support:\t\tNo\r\n\tFEATURE_DEBUG (debug build, slow code):\tNo\r\n\t32bit Atomic operations supported:\tYes\r\n\t64bit Atomic operations supported:\tYes\r\n\tmemory allocator:\t\t\tsystem default\r\n\tRuntime Instrumentation (slow code):\tNo\r\n\tuuid support:\t\t\t\tYes\r\n\tNumber of Bits in RainerScript integers: 64\r\n\r\nSee http://www.rsyslog.com for more information.\r\n```\r\n\r\nrsyslog version on client:\r\n\r\n```\r\nrsyslogd 7.4.4, compiled with:\r\n\tFEATURE_REGEXP:\t\t\t\tYes\r\n\tFEATURE_LARGEFILE:\t\t\tNo\r\n\tGSSAPI Kerberos 5 support:\t\tYes\r\n\tFEATURE_DEBUG (debug build, slow code):\tNo\r\n\t32bit Atomic operations supported:\tYes\r\n\t64bit Atomic operations supported:\tYes\r\n\tRuntime Instrumentation (slow code):\tNo\r\n\tuuid support:\t\t\t\tYes\r\n\r\nSee http://www.rsyslog.com for more information.\r\n```"},"comment":{"url":"https://api.github.com/repos/rsyslog/rsyslog/issues/comments/240023683","html_url":"https://github.com/rsyslog/rsyslog/issues/1117#issuecomment-240023683","issue_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/1117","id":240023683,"user":{"login":"beanhe","id":10845660,"avatar_url":"https://avatars.githubusercontent.com/u/10845660?v=3","gravatar_id":"","url":"https://api.github.com/users/beanhe","html_url":"https://github.com/beanhe","followers_url":"https://api.github.com/users/beanhe/followers","following_url":"https://api.github.com/users/beanhe/following{/other_user}","gists_url":"https://api.github.com/users/beanhe/gists{/gist_id}","starred_url":"https://api.github.com/users/beanhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beanhe/subscriptions","organizations_url":"https://api.github.com/users/beanhe/orgs","repos_url":"https://api.github.com/users/beanhe/repos","events_url":"https://api.github.com/users/beanhe/events{/privacy}","received_events_url":"https://api.github.com/users/beanhe/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T07:24:05Z","updated_at":"2016-08-16T07:24:05Z","body":"I've already update clients to 8.20 (with libfastjson4) but issue continued.  Any other solutions? "}}
{"actor":{"display_login":"beanhe"}}