{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Dynalyst Export Integration","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":"dynalyst-export-integration","__idx":0},"children":["Dynalyst Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/dynalyst-import-integration"},"children":["Dynalyst インポート連携の詳細を確認する"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Dynalyst に直接エクスポートできます。Dynalyst はストレージとして AWS S3 を使用しており、エクスポートプロセスは AWS S3 へのジョブ結果のエクスポートと同様です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-191502.50391feda1620bde1122b9f15182b12136643532d2a42746af434ef9223d786c.f2f90747.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"制限事項","__idx":1},"children":["制限事項"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["S3 への結果出力におけるクエリ結果の上限は 100GB です。クエリ結果が上限を超えると、ログに次のように表示されます:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The number of chunk for multipart upload is exceeded."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリを使用してデータを分割するか、td table: export コマンドを使用してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソール-を使用した接続の作成","__idx":2},"children":["Treasure コンソール を使用した接続の作成"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"認証設定の完了","__idx":3},"children":["認証設定の完了"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int"},"children":["Dynalyst インポートおよびエクスポート連携"]},"で以下を確認し、完了してください",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["前提条件"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新しい接続の作成"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Dynalyst 認証を検索します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"エクスポート結果の定義","__idx":4},"children":["エクスポート結果の定義"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリを作成または再利用します。エクスポートクエリは、Dynalyst にエクスポートされるデータセットを定義します。ここでは次のオプションがあります:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソール を使用したエクスポートクエリの定義"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["TD Toolbelt を使用したエクスポートクエリの定義"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["場合によっては、クエリで列マッピングを定義する必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-コンソール-を使用したエクスポートクエリの定義","__idx":5},"children":["Treasure コンソール を使用したエクスポートクエリの定義"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソール を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Workbench > Queries に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データのエクスポートに使用する予定のクエリにアクセスします"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Results"]}," を選択します。"," ","Choose Saved Connection ダイアログが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["検索ボックスに接続名を入力してフィルタリングし、接続を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["パラメータを指定します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"td-toolbelt-を使用したエクスポートクエリの定義","__idx":6},"children":["TD Toolbelt を使用したエクスポートクエリの定義"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TD Toolbelt を使用してエクスポートクエリを定義することはオプションです。エクスポートクエリは、Dynalyst にエクスポートされるデータセットを定義します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"考慮事項","__idx":7},"children":["考慮事項:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["アクセスキーとシークレットキーは ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://en.wikipedia.org/wiki/Percent-encoding"},"children":["URL エンコード"]},"する必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["セキュリティ上の理由から、ストレージの書き込みアクセス権限を管理するために ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://aws.amazon.com/iam/"},"children":["AWS IAM"]}," を使用することをお勧めします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["結果を圧縮するには、—result URL で ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["compression"]}," オプション (",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["gz"]},") を指定できます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["TD Toolbelt がインストールされ、設定されているコンピュータでターミナルウィンドウを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["TD Toolbelt query コマンドを使用して SQL クエリを定義します。例えば、クエリ結果を圧縮する場合:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n--result 'dynalyst://accesskey:secretkey@/bucketname/path/to/file.csv.gz?compression=gz' \\\n-w -d testdb \\\n\"SELECT code, COUNT(1) AS cnt FROM www_access GROUP BY code\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブが完了すると、結果は指定された名前とパスで S3 バケットに書き込まれます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"非圧縮データの例","__idx":8},"children":["非圧縮データの例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["compression パラメータがない場合、ジョブは非圧縮データを生成します。例えば:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td query \\\n  --result 'dynalyst://accesskey:secretkey@/bucketname/path/to/file.csv' \\\n  -w -d testdb \\\n  \"SELECT code, COUNT(1) AS cnt FROM www_access GROUP BY code\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"aws-s3-サーバー側でのアップロードデータの暗号化","__idx":9},"children":["AWS S3 サーバー側でのアップロードデータの暗号化"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html"},"children":["AWS S3 サーバー側暗号化"]},"を使用してアップロードデータを暗号化できます。暗号化キーを準備する必要はありません。データは 256 ビット Advanced Encryption Standard (AES-256) を使用してサーバー側で暗号化されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["バケットに保存されるすべてのオブジェクトにサーバー側暗号化が必要な場合は、サーバー側暗号化バケットポリシーを使用してください。サーバー側暗号化が有効になっている場合、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["use_sse"]}," オプションを有効にする必要はありません。ただし、暗号化情報のない HTTP リクエストを拒否するバケットポリシーがある場合、ジョブ結果が失敗する可能性があります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n--result 'dynalyst://accesskey:secretkey@/bucketname/path/to/file.csv?use_sse=true&sse_algorithm=AES256' \\\n-w -d testdb \\\n\"SELECT code, COUNT(1) AS cnt FROM www_access GROUP BY code\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"最終ファイル形式のカスタマイズ","__idx":10},"children":["最終ファイル形式のカスタマイズ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトの結果出力形式は ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://www.ietf.org/rfc/rfc4180.txt"},"children":["CSV RFC 4180"]}," です。TSV 形式での出力もサポートされています。CSV および TSV 形式の両方について、次の表は、出力先に書き込まれるファイルの最終形式をカスタマイズするために使用できるオプションを示しています:"]},{"$$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":["名前"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["制限"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CSV デフォルト"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TSV デフォルト"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["format"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ファイル形式を指定するメイン設定"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["csv"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["csv (TSV 形式を選択するには 'tsv' を使用)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["delimiter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["区切り文字を指定するために使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[", (カンマ)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\\t (タブ)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["quote"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["引用符文字を指定するために使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TSV 形式では使用不可"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\" (二重引用符)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["(文字なし)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["escape"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["他の特殊文字をエスケープするために使用される文字を指定"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TSV 形式では使用不可"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\" (二重引用符)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["(文字なし)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["'null' 値の表示方法を指定するために使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["(空文字列)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\\N (バックスラッシュ大文字 n)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["newline"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["EOL (End-Of-Line) の表現を指定するために使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\\r\\n (CRLF)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\\r\\n (CRLF)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["header"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["列ヘッダーを非表示にするために使用可能"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["列ヘッダーが出力されます。非表示にするには 'false' を使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["列ヘッダーが出力されます。非表示にするには 'false' を使用"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の例は、カスタマイズが要求されていない場合の CSV 形式のデフォルトサンプル出力を示しています:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"code,cnt\n\"200\",4981\n\"302\",\n\"404\",17\n\"500\",2\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["format=tsv、delimiter=\"、および null=NULL"]}," オプションを指定した場合:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n--result 'dynalyst://accesskey:secretkey@/bucket_name/path/to/file.tsv?format=tsv&delimiter=%22&null=empty' \\\n-w -d testdb \\\n  \"SELECT code, COUNT(1) AS cnt FROM www_access GROUP BY code\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["出力は次のように変わります:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"code\" \"cnt\"\n\"200\" 4981\n\"302\" NULL\n\"404\" 17\n\"500\" 2\n"},"children":[]}]},"headings":[{"value":"Dynalyst Export Integration","id":"dynalyst-export-integration","depth":1},{"value":"制限事項","id":"制限事項","depth":2},{"value":"Treasure コンソール を使用した接続の作成","id":"treasure-コンソール-を使用した接続の作成","depth":2},{"value":"認証設定の完了","id":"認証設定の完了","depth":3},{"value":"エクスポート結果の定義","id":"エクスポート結果の定義","depth":3},{"value":"Treasure コンソール を使用したエクスポートクエリの定義","id":"treasure-コンソール-を使用したエクスポートクエリの定義","depth":3},{"value":"TD Toolbelt を使用したエクスポートクエリの定義","id":"td-toolbelt-を使用したエクスポートクエリの定義","depth":3},{"value":"考慮事項:","id":"考慮事項","depth":4},{"value":"非圧縮データの例","id":"非圧縮データの例","depth":4},{"value":"AWS S3 サーバー側でのアップロードデータの暗号化","id":"aws-s3-サーバー側でのアップロードデータの暗号化","depth":4},{"value":"最終ファイル形式のカスタマイズ","id":"最終ファイル形式のカスタマイズ","depth":4}],"frontmatter":{"seo":{"title":"Dynalyst Export Integration"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/dynalyst-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}