{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"PHPアプリケーションインポート統合","description":"PHPアプリケーションからTreasure AIへのデータインポート方法を解説。td-agentのインストール手順と、サーバーサイドログ収集の基本的な統合プロセスを紹介します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]},"llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"phpアプリケーションインポート統合","__idx":0},"children":["PHPアプリケーションインポート統合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataは、サーバーサイドのログとイベントを収集し、PHPアプリケーションからTreasure Agent経由でデータをシームレスにインポートするための",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/about-treasure-data-s-server-side-agent"},"children":["td-agent"]},"を提供しています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PHPの基本的な知識。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"を含むTreasure Dataの基本的な知識。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PHP 5.3以上(ローカルテスト用)。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["fluent-logger-phpライブラリはHerokuでは動作しません(",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-integrations/heroku-add-on-notes"},"children":["理由はこちら"]},")。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"td-agentのインストール","__idx":2},"children":["td-agentのインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["アプリケーションサーバーに",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td-agent"]},"をインストールします。td-agentはアプリケーションサーバー内に配置され、アプリケーションログのクラウドへのアップロードに重点を置いています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2020-12-2_14-13-34.1754f4e3154420d54cc976b16d454ef773c83ad5fc4b8580d99a87302c614932.44992bba.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://github.com/fluent/fluent-logger-php"},"children":["fluent-logger-php"]},"ライブラリにより、PHPアプリケーションはローカルのtd-agentにレコードを送信できます。td-agentは5分ごとにデータをクラウドにアップロードします。デーモンはローカルノードで実行されるため、ログの遅延は無視できるレベルです。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-agentインストールオプション","__idx":3},"children":["td-agentインストールオプション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td-agent"]},"をインストールするには、環境に応じて以下のいずれかのコマンドを実行します。エージェントプログラムは、rpm/deb/dmgなどの各プラットフォームのパッケージ管理ソフトウェアを使用すると自動的にインストールされます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"rhelcentos-567","__idx":4},"children":["RHEL/CentOS 5,6,7"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ curl -L https://toolbelt.treasuredata.com/sh/install-redhat-td-agent3.sh | sh\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ubuntuおよびdebian","__idx":5},"children":["UbuntuおよびDebian"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"# 18.04 Bionic\n$ curl -L https://toolbelt.treasuredata.com/sh/install-ubuntu-bionic-td-agent3.sh | sh\n# 16.04 Xenial (64bit only)\n$ curl -L https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent3.sh | sh\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"amazon-linux","__idx":6},"children":["Amazon Linux"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Amazon Linux 1またはAmazon Linux 2を選択できます。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/installing-td-agent-on-aws-linux"},"children":["AWS LinuxへのTreasure Agentのインストール"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"macos-x-1011","__idx":7},"children":["MacOS X 10.11+"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ open 'https://td-agent-package-browser.herokuapp.com/3/macosx/td-agent-3.1.1-0.dmg'\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MacOS X 10.11.1 (El Capitan)では、セキュリティの変更が導入されています。td-agentのインストール後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["/Library/LaunchDaemons/td-agent.plist"]},"ファイルを編集して、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["/usr/sbin/td-agent"]},"を**/opt/td-agent/usr/sbin/td-agent**に変更してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"windows-server-2012","__idx":8},"children":["Windows Server 2012+"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Windowsのインストールには、以下に詳述されている手順が必要です。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.fluentd.org/installation/install-by-msi"},"children":[".msiインストーラーを使用したTreasure Agentのインストール(Windows)"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"opscode-chefリポジトリ","__idx":9},"children":["Opscode Chefリポジトリ"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ echo 'cookbook \"td-agent\"' >> Berksfile\n$ berks install\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/elastic-beanstalk-td-agent"},"children":["AWS Elastic Beanstalk"]},"もサポートされています。現在、Windowsはサポートされていません。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"etctd-agenttd-agentconfの変更","__idx":10},"children":["/etc/td-agent/td-agent.confの変更"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次に、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["apikey"]},"オプションを設定してAPIキーを指定します。APIキーは、Treasure コンソールのプロフィールページからTreasure コンソールで確認できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"conf","header":{"controls":{"copy":{}}},"source":"# Unix Domain Socket Input\n<source>\n  type unix\n  path /var/run/td-agent/td-agent.sock\n</source>\n\n# Treasure Data Output\n<match td.*.*>\n  type tdlog\n  endpoint api.treasuredata.com\n  apikey YOUR_API_KEY\n  auto_create_table\n  buffer_type file\n  buffer_path /var/log/td-agent/buffer/td\n  use_ssl true\n</match>\n","lang":"conf"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YOUR_API_KEY"]}," は、実際の apikey 文字列に置き換える必要があります。API キーは、Treasure コンソール のプロファイルから取得できます。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/my-settings/getting-your-api-keys"},"children":["Write-only API key"]}," の使用が推奨されます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の行が設定されたら、エージェントを再起動してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"# Linux\n$ sudo /etc/init.d/td-agent restart\n\n# MacOS X\n$ sudo launchctl unload /Library/LaunchDaemons/td-agent.plist\n$ sudo launchctl load /Library/LaunchDaemons/td-agent.plist\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td-agentは現在、ポート24224経由でデータを受け入れ、データをバッファリングし(",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["var/log/td-agent/buffer/td"]},")、自動的にデータをクラウドにアップロードします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"fluent-logger-phpの使用","__idx":11},"children":["fluent-logger-phpの使用"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["fluent-logger-phpを使用するには、パッケージマネージャーとして",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://getcomposer.org/"},"children":["Composer"]},"を使用します。まず、ディレクトリに以下の内容で",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["composer.json"]},"を作成します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"require\": {\n    \"fluent/logger\": \"v1.0.0\"\n  }\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次に、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Composer"]},"をインストールし、必要なライブラリをインストールします。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ curl -sS https://getcomposer.org/installer | php\n$ php composer.phar install\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次に、以下のように初期化してレコードを送信します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"<?php\nrequire_once __DIR__.'/vendor/autoload.php';\nuse Fluent\\Logger\\FluentLogger;\n$logger = new FluentLogger(\"unix:///var/run/td-agent/td-agent.sock\");\n$logger->post(\"td.test_db.test_table\", array(\"hello\"=>\"world\"));\n$logger->post(\"td.test_db.follow\", array(\"from\"=>\"userA\", \"to\"=>\"userB\"));\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"データインポートの確認","__idx":12},"children":["データインポートの確認"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["前述のプログラムを実行します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ php test.php\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SIGUSR1シグナルを送信すると、td-agentのバッファがフラッシュされます。アップロードはすぐに開始されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"# Linux\n$ kill -USR1 `cat /var/run/td-agent/td-agent.pid`\n\n# MacOS X\n$ sudo kill -USR1 `sudo launchctl list | grep td-agent | cut -f 1`\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データが正常にアップロードされたことを確認するには、次のように",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td tables"]},"コマンドを実行します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td tables\n+------------+------------+------+-----------+\n| Database   | Table      | Type | Count     |\n+------------+------------+------+-----------+\n| test_db    | test_table | log  | 1         |\n| test_db    | follow     | log  | 1         |\n+------------+------------+------+-----------+\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["post()の最初の引数によって、データベース名とテーブル名が決定されます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td.test\\_db.test\\_table"]},"を指定すると、データはデータベース*test_db*内のテーブル*test_table*にインポートされます。これらはアップロード時に自動的に作成されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"本番デプロイメントのヒント","__idx":13},"children":["本番デプロイメントのヒント"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"apacheとmod_phpを使用する","__idx":14},"children":["ApacheとMod_phpを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ApacheとMod_phpの使用を推奨します。その他のセットアップは完全に検証されていません。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"apache-prefork-mpmを使用する","__idx":15},"children":["Apache prefork MPMを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Apache prefork MPMを使用してください。worker MPMなどの他のMPMは使用しないでください。現在の設定は",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["apachectl -V"]},"コマンドで確認できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ apachectl -V | grep MPM:\nServer MPM:     Prefork\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"maxrequestsperchildを設定する","__idx":16},"children":["MaxRequestsPerChildを設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Apacheの設定ファイルで",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["MaxRequestsPerChild"]},"を設定して、PHPプロセスを定期的に再起動することを推奨します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"conf","header":{"controls":{"copy":{}}},"source":"<IfModule mpm_prefork_module>\n  StartServers          32\n  MinSpareServers       32\n  MaxSpareServers       32\n  MaxClients            32\n  MaxRequestsPerChild 4096\n</IfModule>\n","lang":"conf"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MaxRequestsPerChildをゼロに設定しないでください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"本番デプロイメント","__idx":17},"children":["本番デプロイメント"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-agentの高可用性構成","__idx":18},"children":["td-agentの高可用性構成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["高トラフィックのウェブサイト(5つ以上のアプリケーションノード)の場合、データ転送の信頼性とクエリパフォーマンスを向上させるために、td-agentの高可用性構成を使用してください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/configuring-td-agent-for-high-availability"},"children":["td-agentの高可用性構成"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-agentの監視","__idx":19},"children":["td-agentの監視"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td-agent自体の監視も重要です。td-agentの一般的な監視方法については、以下のドキュメントを参照してください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/monitoring-td-agent"},"children":["td-agentの監視"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td-agentは",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://fluentd.org/"},"children":["Fluentdプロジェクト"]},"の下で完全にオープンソース化されています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"faq","__idx":20},"children":["FAQ"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"phpアプリケーションにresource-temporarily-unavailable警告メッセージが表示される","__idx":21},"children":["PHPアプリケーションに「Resource temporarily unavailable」警告メッセージが表示される"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この問題は、比較的大量のトラフィックがある場合、または古いLinuxカーネルバージョンを使用している場合に発生します。Linuxカーネルを少し調整する必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"最大ファイルディスクリプタ数を増やす","__idx":22},"children":["最大ファイルディスクリプタ数を増やす"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["まず、プロセスごとの最大ファイルディスクリプタ数を増やします。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ulimit -n"]},"コマンドを実行して結果が",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1024"]},"と表示された場合は、以下の手順に従って65535に増やしてください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.fluentd.org/installation/before-install"},"children":["最大ファイルディスクリプタ数を増やす"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"カーネルパラメータの最適化","__idx":23},"children":["カーネルパラメータの最適化"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のパラメータを",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/etc/sysctl.conf"]},"ファイルに追加します。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sysctl -w"]},"と入力するか、ノードを再起動して変更を有効にします。root権限が必要です。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"net.core.somaxconn = 1024\nnet.ipv4.tcp_tw_reuse = 1\nnet.ipv4.ip_local_port_range = 10240    65535\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"次のステップ","__idx":24},"children":["次のステップ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["従来のRDBMSよりも柔軟なスキーマメカニズムを提供しています。クエリには、HiveとPrestoのクエリ言語を活用しています。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/schema-management"},"children":["スキーマ管理"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/queries/trino/quickstart"},"children":["Prestoクエリ言語"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/queries/hive/quickstart"},"children":["Hiveクエリ言語"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/td-api"},"children":["REST APIとそのバインディングによるプログラマティックアクセス"]}]}]}]},"headings":[{"value":"PHPアプリケーションインポート統合","id":"phpアプリケーションインポート統合","depth":1},{"value":"前提条件","id":"前提条件","depth":1},{"value":"td-agentのインストール","id":"td-agentのインストール","depth":1},{"value":"td-agentインストールオプション","id":"td-agentインストールオプション","depth":2},{"value":"RHEL/CentOS 5,6,7","id":"rhelcentos-567","depth":3},{"value":"UbuntuおよびDebian","id":"ubuntuおよびdebian","depth":3},{"value":"Amazon Linux","id":"amazon-linux","depth":3},{"value":"MacOS X 10.11+","id":"macos-x-1011","depth":3},{"value":"Windows Server 2012+","id":"windows-server-2012","depth":3},{"value":"Opscode Chefリポジトリ","id":"opscode-chefリポジトリ","depth":3},{"value":"/etc/td-agent/td-agent.confの変更","id":"etctd-agenttd-agentconfの変更","depth":2},{"value":"fluent-logger-phpの使用","id":"fluent-logger-phpの使用","depth":2},{"value":"データインポートの確認","id":"データインポートの確認","depth":2},{"value":"本番デプロイメントのヒント","id":"本番デプロイメントのヒント","depth":1},{"value":"ApacheとMod_phpを使用する","id":"apacheとmod_phpを使用する","depth":2},{"value":"Apache prefork MPMを使用する","id":"apache-prefork-mpmを使用する","depth":2},{"value":"MaxRequestsPerChildを設定する","id":"maxrequestsperchildを設定する","depth":2},{"value":"本番デプロイメント","id":"本番デプロイメント","depth":1},{"value":"td-agentの高可用性構成","id":"td-agentの高可用性構成","depth":2},{"value":"td-agentの監視","id":"td-agentの監視","depth":2},{"value":"FAQ","id":"faq","depth":1},{"value":"PHPアプリケーションに「Resource temporarily unavailable」警告メッセージが表示される","id":"phpアプリケーションにresource-temporarily-unavailable警告メッセージが表示される","depth":2},{"value":"最大ファイルディスクリプタ数を増やす","id":"最大ファイルディスクリプタ数を増やす","depth":3},{"value":"カーネルパラメータの最適化","id":"カーネルパラメータの最適化","depth":3},{"value":"次のステップ","id":"次のステップ","depth":1}],"frontmatter":{"seo":{"title":"PHPアプリケーションインポート統合","description":"PHPアプリケーションからTreasure AIへのデータインポート方法を解説。td-agentのインストール手順と、サーバーサイドログ収集の基本的な統合プロセスを紹介します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/php-apps-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}