Stackdriver logging の文字化け?

235 views
Skip to first unread message

Tomohiro Nishiyama

unread,
Jun 30, 2019, 9:57:19 PM6/30/19
to Assistant Developer Community Japan
Dialogflowの設定で、Stackdriver loggingへのログ書き込みをONにしております。
6月中旬頃から、LoggingのDialogflowログにおいて、日本語が文字化け(8進数表記?)となっているのですが、同様の事象となっている方はいらっしゃいますでしょうか?

Dialogflow Response ログ一部抜粋
 severity:  "INFO"  
 textPayload:  "Dialogflow Response : id: "7909bb10-7062-45f0-b9bb-32462c1868a9-13076db6"
lang: "ja"
session_id: "ffdcf610-97d5-11e9-8584-d5144caadf04"
timestamp: "2019-06-26T05:48:45.255Z"
result {
  source: "agent"
  resolved_query: "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257" ★★★ココ
  score: 1.0
  parameters {
  }

Dialogflowサポートにも問い合わせしましたが、Dialogflow側には問題ないとの回答でした。
何か対応策などご存知の方がいらっしゃいましたら、ご教示ください。

なお、最終的には、Logging→Bigqueryへエクスポートし、クエリで会話ログを整形しているので
Bigquery側での対応策でも構いません。

Yoichiro Tanaka

unread,
Jul 1, 2019, 12:57:56 AM7/1/19
to Assistant Developer Community Japan
こんにちは。洋一郎です。

> 6月中旬頃から、LoggingのDialogflowログにおいて、日本語が文字化け(8進数表記?)となっているのですが、同様の事象となっている方はいらっしゃいますでしょうか?

同じ状況です。具体亭には、Dialogflow Request と Dialogflow Response の2つのうち、Dialogflow Response 側のログ出力についてのみ UTF-8 エンコード結果としてご指摘どおり8進数での表記となってしまっていますね。「Dialogflow側には問題ないとの回答」とのことですが、おそらく Dialogflow 側でログ出力のための処理を行う際の符号化指定に何かミスがあるのかな、と個人的には推測します。

先ほどGoogle側にIssue報告しておきました。何か進捗あれば、お伝えいたします。

-Yoichiro


2019年7月1日月曜日 10時57分19秒 UTC+9 Tomohiro Nishiyama:

Tomohiro Nishiyama

unread,
Jul 1, 2019, 2:20:22 AM7/1/19
to Assistant Developer Community Japan
洋一郎さん

仰る通り、Dialogflow Request はきちんと日本語で表記されています。

Dialogflowサポートには、Stackdriverのlogファイルとagentも送付したのですが、Stackdriver側の問題と言われてしまいました。。
サポートからの回答)
>Thanks for this information. I have tested your agent on my end and was able to reproduce your issue with Stackdriver. However, since it's the problem only relies with Stackdriver, I suggest that you should reach to Stackdriver team regarding this matter as >debugging/troubleshooting Stackdriver is out of our scope.
>I can attest that the result on console and API is working as expected it shows that characters correctly so It must be on Stackdriver that changes the characters on unreadable format.
>You may reach Stackdriver support through this link or through Google Cloud Platform support page: https://cloud.google.com/stackdriver/docs/getting-support

GoogleへのIssue報告ありがとうございます。


2019年7月1日月曜日 13時57分56秒 UTC+9 Yoichiro Tanaka:

Tomohiro Nishiyama

unread,
Jul 11, 2019, 2:17:47 AM7/11/19
to Assistant Developer Community Japan
洋一郎さん

当件、その後Googleからは特に連絡はありませんでしょうか?

今の状況ですと、手作業でカバーするところが多いため、改善が期待出来そうでなければ、違う手法を検討しようかなと‥

Yoichiro Tanaka

unread,
Jul 11, 2019, 2:30:28 AM7/11/19
to Assistant Developer Community Japan
この問題を報告して、一応 Accepted にはなっているのですが、その後反応がありません。「どうなってますか?調査中ですか?」と催促してみましたが、すぐに直るかどうかは、ちょっと期待できないかもしれません。また状況が変化し次第お伝えいたします。すみませんです。。。

-Yoichiro


2019年7月11日木曜日 15時17分47秒 UTC+9 Tomohiro Nishiyama:

Tomohiro Nishiyama

unread,
Jul 11, 2019, 3:02:26 AM7/11/19
to Assistant Developer Community Japan
いえいえ、代わりに問い合わせ頂いているだけで有り難いです。
よい知らせが来ることを期待しつつ、別の手法の検討も進めようと思います!

Tomohiro Nishiyama

unread,
Aug 28, 2019, 10:20:38 PM8/28/19
to Assistant Developer Community Japan
洋一郎さん

当件、代替案を見つけたので忘れかけていたのですが、本日確認したところ修正されていたようです。

Googleへのお問合せなど、ありがとうございました。

Reply all
Reply to author
Forward
0 new messages