legacy-knowledge-base
公開されました Sep. 10, 2025

Liferay SaaS プロジェクトのデータベース クエリ ログはどこで入手できますか?

written-by

Alfonso Crisci

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay SaaS プロジェクトのデータベース クエリ ログはどこで入手できますか?

環境

  • Liferay SaaS
  • Dynatrace Add-On

解決

  1. Dynatraceを通じてアドバンスト・アプリケーション・メトリクスを有効にすることを確認してください : 高度なアプリケーションメトリクス(本番環境のみ)に関連資料があります。
  2. アクティブになったら、Dynatrace Dashboard内の左側のサイドバー > アプリケーション オブザーバビリティ > データベース サービスへ移動します。
  3. ディスク上の MySQL インスタンスによって維持される MySQL スロー クエリ ログを確認するには、環境変数を使用して必要なフラグを有効にする必要があります。次に例を示します:

    LCP_GCP_DATABASE_FLAG_SLOW_QUERY_LOG=on
    LCP_GCP_DATABASE_FLAG_LOG_OUTPUT=TABLE
    完全なドキュメントリファレンスは https://learn.liferay.com/dxp-cloud/latest/en/platform-services/database-service/database-service.html#environment-variablesにあります。 設定すると、 mysql データベースのスロークエリログを見ることができるようになります。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base