{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Treasure AIに送信されるTD Agentログ","description":"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/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"treasure-dataに送信されるtd-agentログ","__idx":0},"children":["Treasure Dataに送信されるTD Agentログ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Agent(td-agent)とFluentdのログをTreasure Dataプラットフォームに送信できます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#capture-td-agent--fluentd-logs"},"children":["td-agent / Fluentdログのキャプチャ"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#prerequisites"},"children":["前提条件"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#td-agent-logs"},"children":["td-agentログ"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#sending-logs-to-treasure-data"},"children":["Treasure Dataへのログの送信"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#viewing-logs-in-treasure-data"},"children":["Treasure Data内でのログの表示"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#whats-next"},"children":["次のステップ"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-agent--fluentdログのキャプチャ","__idx":1},"children":["td-agent / Fluentdログのキャプチャ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td-agentログをTreasure Dataに送信して保存できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":2},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data Agentの基本的な知識。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data Agent / Fluentdの設定と構文の基本的な知識。この記事で使用される用語と概念を理解するには、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.fluentd.org/v1.0/articles/config-file"},"children":["Configuration File Syntax"]},"を参照してください。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-agentログ","__idx":3},"children":["td-agentログ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td-agentは、独自のログに",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fluent"]},"タグを付けます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<label @FLUENT_LOG>"]},"内で",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<match fluent.**>"]},"を使用して(もちろん、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["**"]},"は他のログもキャプチャします)、td-agentログを処理できます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<label @FLUENT_LOG>"]},"内で設定を定義すると、td-agentは独自のログをこのラベルに送信します。これは、td-agentログを監視するのに役立ちます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["たとえば、以下の設定がある場合:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"conf","header":{"controls":{"copy":{}}},"source":"# omit other source / match\n<label @FLUENT_LOG>\n  <match fluent.*>\n    @type stdout\n  </match>\n</label>\n","lang":"conf"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td-agentは、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fluent.info"]},"ログを次のようにstdoutに出力します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"text","header":{"controls":{"copy":{}}},"source":"2014-02-27 00:00:00 +0900 [info]: shutting down fluentd\n2014-02-27 00:00:01 +0900 fluent.info: {\"message\":\"shutting down fluentd\"} # by <match fluent.*>\n2014-02-27 00:00:01 +0900 [info]: process finished code = 0\n","lang":"text"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-dataへのログの送信","__idx":4},"children":["Treasure Dataへのログの送信"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td-agentログをTreasure Dataに送信して保存するには、td-agentログ設定セクションを変更する必要があります。以下の例に示すように、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<match fluent.*>"]},"セクションに変更を含める必要があります。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<YOUR TD API KEY>"]},"の代わりに、Write-only APIキーを含めるようにしてください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"conf","header":{"controls":{"copy":{}}},"source":"<label @FLUENT_LOG>\n  <match fluent.*>\n    @type tdlog\n    apikey <YOUR TD API KEY>\n    auto_create_table\n    use_ssl true\n    <buffer>\n      @type file\n      path /var/log/td-agent/buffer/td_logs\n    </buffer>\n  </match>\n</label>\n","lang":"conf"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定ファイルへの変更を保存し、td-agentを再起動してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data内でのログの表示","__idx":5},"children":["Treasure Data内でのログの表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataに送信されたtd-agentログは、インスタンス上の",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fluent"]},"という名前のdatabaseに保存されます。fluent database内では、fluentdロガーで使用されるさまざまなログレベルに対応する一連のテーブルが作成されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/fluent___treasure_data.a4e8162b15e1c778a6d32a0e1d829e1026d19e726e70b5dac4ee913e25117c67.ef656343.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"次のステップ","__idx":6},"children":["次のステップ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td-agentのログの詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.fluentd.org/deployment/logging"},"children":["Fluentd Logging"]},"を参照してください。"]}]},"headings":[{"value":"Treasure Dataに送信されるTD Agentログ","id":"treasure-dataに送信されるtd-agentログ","depth":1},{"value":"td-agent / Fluentdログのキャプチャ","id":"td-agent--fluentdログのキャプチャ","depth":2},{"value":"前提条件","id":"前提条件","depth":2},{"value":"td-agentログ","id":"td-agentログ","depth":2},{"value":"Treasure Dataへのログの送信","id":"treasure-dataへのログの送信","depth":2},{"value":"Treasure Data内でのログの表示","id":"treasure-data内でのログの表示","depth":2},{"value":"次のステップ","id":"次のステップ","depth":2}],"frontmatter":{"seo":{"title":"Treasure AIに送信されるTD Agentログ","description":"Treasure AIに送信されるTD Agentログの設定方法と、ログの監視、保存、表示に関する包括的なガイドです。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/integration-hub/streaming/td-agent/td-agent-logs-sent-to-treasure-data","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}