{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"TD Agentリファレンス","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","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":"td-agentリファレンス","__idx":0},"children":["TD Agentリファレンス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のファイルは、rpmまたはDebianパッケージによってインストールされます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-agent-4x","__idx":1},"children":["td-agent 4.x"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Resource"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Location"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Notes"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Config Directory"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/etc/td-agent/"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Config File"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/etc/td-agent/td-agent.conf"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["この設定はスタートアップスクリプトによって読み込まれます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Startup Script"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/usr/lib/systemd/system/td-agent.serviceまたは /etc/init.d/td-agent"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Log Directory"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/var/log/td-agent/"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Plugin Directory"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/etc/td-agent/plugin/"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カスタムプラグインはここに配置します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ruby Interpreter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/opt/td-agent/bin/ruby"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ruby v2.7がパッケージにバンドルされています。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rubygems"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/usr/sbin/td-agent-gem"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["fluentd pluginsをインストールするためのバンドルされたrubygems。例: /usr/sbin/td-agent-gem install fluent-plugin-mongo"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["jemalloc"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/opt/td-agent/lib/libjemalloc.so"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://jemalloc.net/"},"children":["jemalloc"]},"は、メモリの断片化を避けるために一緒にバンドルされています。スタートアップスクリプトでデフォルトでロードされます。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-agent-3x","__idx":2},"children":["td-agent 3.x"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Resource"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Location"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Notes"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Config Directory"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/etc/td-agent/"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Config File"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/etc/td-agent/td-agent.conf"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["この設定はスタートアップスクリプトによって読み込まれます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Startup Script"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/usr/lib/systemd/system/td-agent.serviceまたは /etc/init.d/td-agent"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Log Directory"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Plugin Directory"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/etc/td-agent/plugin/"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カスタムプラグインはここに配置します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ruby Interpreter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/opt/td-agent/embedded/bin/ruby"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ruby v2.4がパッケージにバンドルされています。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rubygems"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/usr/sbin/td-agent-gem"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["fluentd pluginsをインストールするためのバンドルされたrubygems。例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/usr/sbin/td-agent-gem install fluent-plugin-mongo"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["jemalloc"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/opt/td-agent/embedded/lib/libjemalloc.so"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://jemalloc.net/"},"children":["jemalloc"]},"は、メモリの断片化を避けるために一緒にバンドルされています。スタートアップスクリプトでデフォルトでロードされます。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"監視権限ネットワークポート","__idx":3},"children":["監視、権限、ネットワークポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td-agentが起動すると、親プロセスと子プロセスの2つのプロセスが起動します。親プロセスは子プロセスのライフサイクルを管理し、子プロセスは実際のログ収集を処理します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ ps w -C ruby -C fluentd --no-heading\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"26238 ? Sl 0:00 /opt/td-agent/embedded/bin/ruby /opt/td-agent/embedded/bin/fluentd --log /var/log/td-agent/td-agent.log --daemon /var/run/td-agent/td-agent.pid\n26243 ? Sl 0:25 /opt/td-agent/embedded/bin/ruby -Eascii-8bit:ascii-8bit /opt/td-agent/embedded/bin/fluentd --log /var/log/td-agent/td-agent.log --daemon /var/run/td-agent/td-agent.pid --under-supervisor\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["両方のプロセスは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td-agent"]},"ユーザーとして",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td-agent"]},"グループの下で実行され、すべてのフォークされたサブプロセスも同様に実行されます。これは、td-agentによって開始されるすべてのシステムコールにも適用されます。エージェント設定は/etc/td-agent/td-agent.confにあります。すべての設定はtd-agentによって読み取り可能である必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["入力に応じて、以下のポートが開きます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["in_tail: なし"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["in_forward: tcp/24224、udp/24224"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["in_unix: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/var/run/td-agent/td-agent.sock"]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataへの安全なアップロードには、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["*.treasuredata.com"]},"のtcp/443(https)を開く必要があります。"]}]},"headings":[{"value":"TD Agentリファレンス","id":"td-agentリファレンス","depth":1},{"value":"td-agent 4.x","id":"td-agent-4x","depth":2},{"value":"td-agent 3.x","id":"td-agent-3x","depth":2},{"value":"監視、権限、ネットワークポート","id":"監視権限ネットワークポート","depth":1}],"frontmatter":{"seo":{"title":"TD Agentリファレンス"}},"lastModified":"2025-11-22T02:43:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/integration-hub/streaming/td-agent/td-agent-reference","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}