{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Amazon S3 ファイル名メタデータ拡張インポートインテグレーション","description":"Amazon S3のCSVファイルからファイル名メタデータを含むデータをインポートする拡張インテグレーションの設定方法と前提条件を解説します。","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":"amazon-s3-ファイル名メタデータ拡張インポートインテグレーション","__idx":0},"children":["Amazon S3 ファイル名メタデータ拡張インポートインテグレーション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このAmazon S3用インポートデータコネクタは、AWS S3バケットに保存されているCSVファイルからデータとオプションのファイル名をインポートすることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"異なるamazon-s3インポートインテグレーション","__idx":1},"children":["異なるAmazon S3インポートインテグレーション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["インテグレーション v1"]},": このインテグレーションと比較して、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/amazon-s3-import-integration-v1"},"children":["Amazon S3 Import Integration v1"]},"はファイル名の取り込みをサポートしていません。CSVファイル形式のみをサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["インテグレーション v2"]},": ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/amazon-s3-import-integration-v2"},"children":["Amazon S3 Import Integration v2"]},"のv1との主な違いと利点は、assume_role認証のサポートが追加されたことです。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Amazon S3 Filename Metadata Enhanced Import Integrationは",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CSVファイルのみ"]},"で動作し、その他のファイルタイプはサポートされていません。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":2},"children":["前提条件"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataの基本的な知識が必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TDリージョンと同じリージョンのAWS S3バケットを使用する場合、TDがバケットにアクセスする際のIPアドレスはプライベートで動的に変更されます。アクセスを制限したい場合は、静的IPアドレスの代わりにVPC IDを指定してください。例えば、USリージョンの場合はvpc-df7066baを通じてアクセスを設定します。Tokyoリージョンの場合はvpc-e630c182を、EU01リージョンの場合はvpc-f54e6a9eを設定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールのリージョンは、TDへのログインに使用するURLで確認し、URLからお使いのリージョンのデータコネクタを参照してください。"]},{"$$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":"Treasure コンソールのリージョン"},"children":["Treasure コンソールのリージョン"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"URL"},"children":["URL"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["US"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.treasuredata.com/"},"children":["https://console.treasuredata.com"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tokyo"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.treasuredata.co.jp/"},"children":["https://console.treasuredata.co.jp"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["EU01"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.eu01.treasuredata.com/"},"children":["https://console.eu01.treasuredata.com"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-integration-の静的-ip-アドレス","__idx":3},"children":["Treasure Data Integration の静的 IP アドレス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["セキュリティポリシーで IP ホワイトリストが必要な場合は、接続を成功させるために Treasure Data の IP アドレスを許可リストに追加する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リージョンごとに整理された静的 IP アドレスの完全なリストは、次のリンクにあります:"," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/ip-addresses-integrations-result-workers"},"children":["IP Addresses for Integrations"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールで新しい認証を作成","__idx":4},"children":["Treasure コンソールで新しい認証を作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データ接続を設定する際、インテグレーションへアクセスするための認証情報を提供します。Treasure Dataでは、認証を設定し、ソース情報を指定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"に移動し、AWS S3を検索します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/amazons3filenamemetadataenhanced.3b01d21cb0899887eb2803ec7f1e90f8a067909c25a32fb90805ef5db1d6fcf1.cd73d98d.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["New Authenticationダイアログが開きます。認証情報を使用して認証するには、Access key IDとSecret access keyが必要です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下のパラメータを設定します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。新しいAWS S3接続に名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$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":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Endpoint"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["S3エンドポイントログインユーザー名。リージョンとエンドポイント情報は",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region"},"children":["AWSドキュメント"]},"から確認できます。（例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://s3.ap-northeast-1.amazonaws.com"},"children":["s3.ap-northeast-1.amazonaws.com"]}]},"）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentication Method"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["basic"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["access_key_idとsecret_access_keyを使用して認証します。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html"},"children":["AWS Programmatic access"]},"を参照してください。   - Access Key ID - Secret access key"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["anonymous"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["匿名アクセスを使用します。この認証方法は公開ファイルのみにアクセスできます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["session (推奨)"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["一時的に生成されたaccess_key_id、secret_access_key、session_tokenを使用します。（この認証方法はデータインポートでのみ使用可能です。現時点ではデータエクスポートでは使用できません。）   - Access Key ID - Secret access key - Secret token"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Access Key ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["AWS S3が発行"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Secret Access Key"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["AWS S3が発行"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソール経由でaws-s3データをtreasure-dataに転送","__idx":5},"children":["Treasure コンソール経由でAWS S3データをTreasure Dataに転送"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証済み接続を作成すると、自動的にAuthenticationsに移動します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["作成した接続を検索します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191014-185537.a673857cd3d7cd4d6249e93718c2c0b501d3da0ab1a5cfef2dd54c1fb6478775.cd73d98d.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"new-source","__idx":6},"children":["New Source"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Transferフィールドの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source"]},"に名前を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"をクリックします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/s3_new.5fa3911b9f90a38cdf2daddcdf9cb8cebe026cc85658ca1f4da2ba69f80fc138.cd73d98d.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ソーステーブルの設定","__idx":7},"children":["ソーステーブルの設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sourceダイアログが開きます。以下のパラメータを編集します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-at-sep-24-20-08-14.77a49736abf2e6584944c6c79ad366d1b1e36ec68a9827ea3e01f315f7a4c629.cd73d98d.png","alt":""},"children":[]}]},{"$$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":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Bucket"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["S3バケット名を指定します（例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["your_bucket_name"]},"）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Path Prefix"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ターゲットキーのプレフィックスを指定します。（例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["logs/data_"]},"）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Path Regex"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["正規表現を使用してファイルパスをマッチさせます。ファイルパスが指定されたパターンと一致しない場合、ファイルはスキップされます。例えば、パターン*.csv$*を選択した場合、パスがパターンと一致しないファイルはスキップされます。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions"},"children":["正規表現"]},"について詳しく読む。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Include file name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["有効にすると、ファイル名が新しいカラムに保存されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Skip Glacier Objects"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Amazon Glacierストレージクラスに保存されているオブジェクトの処理をスキップする場合に選択します。オブジェクトがGlacierストレージクラスに保存されているにもかかわらず、このオプションがチェックされていない場合、例外がスローされます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Filter by Modified Time"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["取り込むファイルをフィルタリングする方法を選択します:"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["チェックが外れている場合（デフォルト）:"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start after path"]},": last_pathパラメータを挿入し、最初の実行でパス以前のファイルをスキップします。（例: logs/data_20170101.csv）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental"]},": 増分読み込みを有効にします。増分読み込みが有効な場合、次回実行の設定差分にlast_pathパラメータが含まれるため、次の実行ではパス以前のファイルがスキップされます。それ以外の場合、last_pathは含まれません。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["チェックされている場合:"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Modified after:"]}," last_modified_timeパラメータを挿入し、最初の実行で指定されたタイムスタンプ以前に変更されたファイルをスキップします。（例: 2019-06-03T10:30:19.806Z）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental by Modified Time:"]}," 変更時刻による増分読み込みを有効にします。増分読み込みが有効な場合、次回実行の設定差分にlast_modified_timeパラメータが含まれるため、次の実行ではその時刻以前に変更されたファイルがスキップされます。それ以外の場合、last_modified_timeは含まれません。"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["例"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ディレクトリ内のすべてのファイル（トップレベルディレクトリ「/」からなど）をスキャンする必要がある場合があります。そのような場合は、CLIを使用してインポートする必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Amazon CloudFrontは、静的および動的Webコンテンツの配信を高速化するWebサービスです。CloudFrontを設定して、CloudFrontが受信するすべてのユーザーリクエストに関する詳細情報を含むログファイルを作成できます。ロギングを有効にすると、次のようなCloudFrontログファイルを保存できます:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"[your_bucket] - [logging] - [E231A697YXWD39.2017-04-23-15.a103fd5a.gz]\n[your_bucket] - [logging] - [E231A697YXWD39.2017-04-23-15.b2aede4a.gz]\n[your_bucket] - [logging] - [E231A697YXWD39.2017-04-23-16.594fa8e6.gz]\n[your_bucket] - [logging] - [E231A697YXWD39.2017-04-23-16.d12f42f9.gz]\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この場合、ソーステーブルの設定は次のようになります:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Bucket"]},": your_bucket"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Path Prefix"]},": logging/"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Path Regex"]},": ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":[".gz$"]}," (必須ではありません)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start after path"]},": logging/E231A697YXWD39.2017-04-23-15.b2aede4a.gz (2017-04-23-16からログファイルをインポートすると仮定)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental"]},": true (このジョブをスケジュールする場合)"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データ設定","__idx":8},"children":["データ設定"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。Data Settingsページが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["オプションで、データ設定を編集するか、このページをスキップします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-2023-08-17.8f72248b8a2123147b3671f0a212ff7e200c354873c1b9c579efde51319ae1b1.cd73d98d.png","alt":""},"children":[]}]},{"$$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":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Total file count limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["読み込むファイルの最大数を指定できます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Minimum task size"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このサイズまでのファイルが1つのタスクにグループ化されます。デフォルト値は268435456(バイト)です。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"filters","__idx":9},"children":["Filters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Filters は、S3、FTP、または SFTP コネクターの Create Source または Edit Source インポート設定で使用できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Import Integration Filters を使用すると、インポート用の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/editing-data-settings"},"children":["データ設定の編集"]},"を完了した後、インポートされたデータを変更できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["import integration filters を適用するには:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Settings で ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Filters ダイアログが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["追加したいフィルターオプションを選択します。",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200609-201955.eed6c6da800ba40d1d98b92e767d9a8f7500cad8a9d4079121190b7d34c23294.c7246827.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add Filter"]}," を選択します。そのフィルターのパラメーターダイアログが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["パラメーターを編集します。各フィルタータイプの情報については、次のいずれかを参照してください:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Retaining Columns Filter"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Adding Columns Filter"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Dropping Columns Filter"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Expanding JSON Filter"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Digesting Filter"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["オプションで、同じタイプの別のフィルターを追加するには、特定の列フィルターダイアログ内で ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["オプションで、別のタイプの別のフィルターを追加するには、リストからフィルターオプションを選択して、同じ手順を繰り返します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["追加したいフィルターを追加した後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Data Preview ダイアログが開きます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-preview","__idx":10},"children":["Data Preview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートを実行する前に、Generate Preview を選択してデータの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/import/previewing-your-source-data"},"children":["プレビュー"]},"を表示できます。Data preview はオプションであり、選択した場合はダイアログの次のページに安全にスキップできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Data Preview ページが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データをプレビューする場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データを確認します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-placement","__idx":11},"children":["Data Placement"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データの配置について、データを配置したいターゲット database と table を選択し、インポートを実行する頻度を指定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Storage の下で、インポートされたデータを配置する新しい database を作成するか、既存の database を選択し、新しい table を作成するか、既存の table を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Database"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、database 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Table"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Table"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、table 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをインポートする方法を選択します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Append"]}," (デフォルト) - データインポートの結果は table に追加されます。"," ","table が存在しない場合は作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Always Replace"]}," - 既存の table の全体の内容をクエリの結果出力で置き換えます。table が存在しない場合は、新しい table が作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace on New Data"]}," - 新しいデータがある場合のみ、既存の table の全体の内容をクエリの結果出力で置き換えます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp-based Partition Key"]}," 列を選択します。"," ","デフォルトキーとは異なるパーティションキーシードを設定したい場合は、long または timestamp 列をパーティショニング時刻として指定できます。デフォルトの時刻列として、add_time フィルターで upload_time を使用します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データストレージの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timezone"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の下で、このクエリを実行するタイミングと頻度を選択できます。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"一度だけ実行","__idx":12},"children":["一度だけ実行"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Off"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"定期的に繰り返す","__idx":13},"children":["定期的に繰り返す"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を選択します。UI では、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@monthly"]},"、またはカスタム ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]}," の 4 つのオプションが提供されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delay Transfer"]}," を選択して、実行時間の遅延を追加することもできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送が実行された後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]}," で転送の結果を確認できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"data-connector-ジョブの検証","__idx":14},"children":["Data Connector ジョブの検証"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データインポートの問題をトラブルシューティングするには","__idx":15},"children":["データインポートの問題をトラブルシューティングするには?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブログを確認してください。警告とエラーは、インポートの成功に関する情報を提供します。例えば、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-import-error-troubleshooting"},"children":["インポートエラーに関連する source ファイル名を特定"]},"できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["特定のジョブの詳細を確認するには、そのジョブを選択して詳細を表示します。ジョブのタイプに応じて、次のいずれか、またはすべてを確認できます: 結果、クエリ、出力ログ、エンジンログ、詳細、および宛先。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソール を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Jobs"]}," に移動します。ページの右上に記載されているジョブの数を確認できます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/managing_jobs__360001457707__mceclip0.da001c56a934e6cb6001326ffbcf4a0e84c98aeebcb735879d974db1df660a4c.22d00320.png","alt":""},"children":[]}," ","3. オプションで、フィルターを使用してジョブのリストを絞り込み、ジョブ所有者、日付、database 名などでフィルタリングして、関心のあるものを見つけます。"," ","4. ジョブを選択して開き、結果、クエリ定義、ログ、その他の詳細を表示します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/managing_jobs__360001457707__mceclip1.8d80bfeb65a6425ba20c1ae0657bc6024a69694a10772e71c54baccf74c5c7f7.22d00320.png","alt":""},"children":[]}," ","5. 各タブには、ジョブに関する異なる情報が表示されます。"]},{"$$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":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Results"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ジョブからインポートされたデータを表示します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ここから、結果をクリップボードにコピーしたり、CSV ファイルとしてダウンロードしたりできます。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Query"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ジョブのクエリ構文を表示します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリエディターを起動します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリをコピーして、新しいクエリや workflow を作成するために使用します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリを改良して効率を向上させます"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Output および Engine Logs"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ログ情報は、実行時間、クエリ結果の数、エラーコードについて確認できます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ログ情報はクリップボードにコピーできます"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Details"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["詳細情報を表示します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリ名"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["タイプ"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ジョブ ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ステータス"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["期間"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールされた時刻と実際の時刻"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["結果の数とサイズ"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ランナー"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリされた database"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["優先度"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Destination"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ここでは、エクスポート integration 設定の詳細を表示できます（インポート integration には適用されません）:   - integration - タイプ - 設定"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"s3ジョブのデータコネクタが長時間実行される場合はどうすればよいですか","__idx":16},"children":["S3ジョブのデータコネクタが長時間実行される場合はどうすればよいですか？"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクタジョブが取り込んでいるS3ファイルの数を確認してください。10,000ファイルを超える場合、パフォーマンスが低下します。この問題を軽減するには、次の方法があります:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["path_prefixオプションを絞り込んで、S3ファイルの数を減らします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["min_task_sizeオプションに268,435,456 (256MB)を設定します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"workflow経由でaws-s3からインポート","__idx":17},"children":["Workflow経由でAWS S3からインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["S3インポートインテグレーション用のサンプルワークフローファイルがあります。ymlファイルを使用してインポート設定を定義し、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td\\_load>:"]},"ワークフローオペレータを使用して実行できます。Treasure コンソールのSource機能だけでは使用できない変数定義が、ymlファイルベースの実行では可能です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サンプルコードは",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/treasure-boxes/tree/master/td_load/s3"},"children":["https://github.com/treasure-data/treasure-boxes/tree/master/td_load/s3"]},"から参照できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"timezone: UTC\n\nschedule:\n  daily>: 02:00:00\n\nsla:\n  time: 08:00\n  +notice:\n    mail>: {data: Treasure Workflow Notification}\n    subject: This workflow is taking long time to finish\n    to: [me@example.com]\n\n_export:\n  td:\n    dest_db: dest_db_ganesh\n    dest_table: dest_table_ganesh\n\n+prepare_table:\n  td_ddl>:\n  create_databases: [\"${td.dest_db}\"]\n  create_tables: [\"${td.dest_table}\"]\n  database: ${td.dest_db}\n\n+load:\n  td_load>: config/daily_load.yml\n  database: ${td.dest_db}\n  table: ${td.dest_table}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cli-toolbelt経由でaws-s3からインポート","__idx":18},"children":["CLI (Toolbelt)経由でAWS S3からインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションでTD Toolbeltを使用して、接続の設定、ジョブの作成、実行のスケジュール設定を行うことができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"cliを使用してコネクタを設定","__idx":19},"children":["CLIを使用してコネクタを設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクタをセットアップする前に、'td'コマンドをインストールしてください。最新のTD Toolbeltをインストールします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"seed設定ファイルseedymlの作成","__idx":20},"children":["Seed設定ファイル(seed.yml)の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の例に示すように、AWSアクセスキーとシークレットアクセスキーを使用して",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["seed.yml"]},"を準備します。また、バケット名とソースファイル名(または複数ファイルのプレフィックス)を指定する必要があります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: s3_fme\n  access_key_id: XXXXXXXXXX\n  secret_access_key: YYYYYYYYYY\n  bucket: sample_bucket\n  include_file_name: true\n  # path to the *.csv file on your s3 bucket\n  path_prefix: path/to/sample_file\n  path_match_pattern: \\.csv$ # a file will be skipped if its path doesn't match with this pattern\n\n  ## some examples of regexp:\n  #path_match_pattern: /archive/ # match files in .../archive/... directory\n  #path_match_pattern: /data1/|/data2/ # match files in .../data1/... or .../data2/... directory\n  #path_match_pattern: .csv$|.csv.gz$ # match files whose suffix is .csv or .csv.gz\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Amazon S3用データコネクタは、指定されたプレフィックスに一致するすべてのファイルをインポートします。(例: path_prefix: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["path/to/sample_"]}," –> ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["path/to/sample_201501.csv.gz"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["path/to/sample_201502.csv.gz"]},", …, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["path/to/sample_201505.csv.gz"]},")"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["先頭に'/'を付けてpath_prefixを使用すると、意図しない結果になる可能性があります。例えば:「path_prefix: /path/to/sample_file」とすると、プラグインはs3://sample_bucket//path/to/sample_fileでファイルを探しますが、これはS3上の意図したパスs3://sample_bucket/path/to/sample_fileとは異なります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"フィールドの推測-loadymlの生成","__idx":21},"children":["フィールドの推測 (load.ymlの生成)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["connector:guess"]},"を使用します。このコマンドは自動的にソースファイルを読み取り、ファイル形式とそのフィールド/カラムを評価(推測ロジックを使用)します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:guess seed.yml -o load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["load.ymlを開くと、ファイル形式、エンコーディング、カラム名、型を含む評価されたファイル形式定義が表示されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"in:\n  type: s3_fme\n  access_key_id: XXXXXXXXXX\n  secret_access_key: YYYYYYYYYY\n  bucket: sample_bucket\n  path_prefix: path/to/sample_file\n  include_file_name: true\n  path_prefix: path/to/sample_file\n  parser:\n    charset: UTF-8\n    newline: CRLF\n    type: csv\n    delimiter: ','\n    quote: '\"'\n    escape: ''\n    skip_header_lines: 1\n    columns:\n    - name: id\n      type: long\n    - name: company\n      type: string\n    - name: customer\n      type: string\n    - name: created_at\n      type: timestamp\n      format: '%Y-%m-%d %H:%M:%S'\nout:\n  mode: append\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["その後、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:preview"]},"コマンドを使用してデータのプレビューを表示できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:preview load.yml\n+-------+---------+----------+---------------------+\n| id    | company | customer | created_at          |\n+-------+---------+----------+---------------------+\n| 11200 | AA Inc. |    David | 2015-03-31 06:12:37 |\n| 20313 | BB Imc. |      Tom | 2015-04-01 01:00:07 |\n| 32132 | CC Inc. | Fernando | 2015-04-01 10:33:41 |\n| 40133 | DD Inc. |    Cesar | 2015-04-02 05:12:32 |\n| 93133 | EE Inc. |     Jake | 2015-04-02 14:11:13 |\n+-------+---------+----------+---------------------+\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["guessコマンドは、ソースデータのサンプル行を使用してカラム定義を評価するため、ソースデータファイルに3行以上、2カラム以上が必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["システムがカラム名またはカラムタイプを予期せず検出した場合は、load.ymlを直接変更して再度プレビューしてください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["現在、データコネクタは「boolean」、「long」、「double」、「string」、「timestamp」タイプの解析をサポートしています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードジョブの実行","__idx":22},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ロードジョブを送信します。データサイズによっては、数時間かかる場合があります。データを保存するTreasure Dataのデータベースとテーブルを指定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのストレージは時間でパーティション化されているため、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["--time-column"]},"オプションを指定することを推奨します(",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["データパーティショニング"]},"を参照)。オプションが指定されていない場合、データコネクタは最初の",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["long"]},"または",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["timestamp"]},"カラムをパーティショニング時刻として選択します。",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["—- time-column"]},"で指定するカラムは、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["long"]},"または",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["timestamp"]},"のいずれかである必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データに時刻カラムがない場合は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["add_time"]},"フィルタオプションを使用して追加できます。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/import/filter/add_time-filter-function"},"children":["add_timeフィルタプラグイン"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml --database td_sample_db --table td_sample_table   --time-column created_at\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["connector:issueコマンドは、すでに",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["database(td_sample_db)",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["と"]},"table(td_sample_table)",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["を作成していることを前提としています。データベースまたはテーブルがTDに存在しない場合、このコマンドは成功しないため、データベースとテーブルを手動で作成するか、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:issue"]},"コマンドで"]},"--auto-create-table"]},"オプションを使用してデータベースとテーブルを自動作成します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column created_at --auto-create-table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データコネクタはサーバー側でレコードをソートしません。時間ベースのパーティショニングを効果的に使用するには、事前にファイル内のレコードをソートしてください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["時刻フィールドがある場合は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--time-column"]},"オプションを指定する必要はありません。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"実行のスケジュール設定","__idx":23},"children":["実行のスケジュール設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["増分ファイルインポートのために、定期的なデータコネクタの実行をスケジュール設定できます。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/scheduling-a-data-connector-job-execution-from-the-cli"},"children":["こちら"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"iamパーミッション","__idx":24},"children":["IAMパーミッション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["YML設定ファイルで指定され、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["connector:guess"]},"および",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["connector:issue"]},"コマンドで使用されるIAM認証情報には、AWS S3リソースにアクセスするためのパーミッションが必要です。IAMユーザーがこれらのパーミッションを持っていない場合は、事前定義されたポリシー定義のいずれかでユーザーを設定するか、JSON形式で新しいポリシー定義を作成します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の例は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html"},"children":["ポリシー定義リファレンス"]},"形式に基づいており、IAMユーザーにyour-bucketへの",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["読み取り専用"]},"(GetObjectおよびListBucketアクションを通じて)パーミッションを付与します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"s3:GetObject\",\n        \"s3:ListBucket\"\n      ],\n      \"Resource\": [\n        \"arn:aws:s3:::your-bucket\",\n        \"arn:aws:s3:::your-bucket/*\"\n      ]\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["your-bucket"]},"を実際のバケット名に置き換えてください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"一時認証情報プロバイダとしてのaws-security-token-service-stsの使用","__idx":25},"children":["一時認証情報プロバイダとしてのAWS Security Token Service (STS)の使用"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["場合によっては、access_key_idとsecret_access_keyによるIAM基本認証はリスクが高すぎる可能性があります(ただし、secret_access_keyはジョブの実行時やセッション作成後に明確に表示されることはありません)。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["S3データコネクタは、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html"},"children":["一時セキュリティ認証情報"]},"を提供するAWS Secure Token Service (STS)を使用できます。AWS STSを使用すると、任意のIAMユーザーが自分のaccess_key_idとsecret_access_keyを使用して、有効期限付きの一時的なnew_access_key_id、new_secret_access_key、session_tokenキーのセットを作成でき、有効期限後は認証情報が無効になります。"," ","一時セキュリティ認証情報のタイプは次のとおりです:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getsessiontoken.html"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Session Token"]}]}," ","最もシンプルなセキュリティ認証情報で、有効期限が関連付けられています。一時認証情報は、それらを生成するために使用された元のIAM認証情報が持っていたすべてのリソースへのアクセスを許可します。これらの認証情報は、有効期限が切れておらず、元のIAM認証情報のパーミッションが変更されていない限り有効です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getfederationtoken.html"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Federation Token"]}]}," ","上記のSession Tokenに追加のパーミッション制御レイヤーを追加します。Federation Tokenを生成する際、IAMユーザーはパーミッションポリシーの定義を指定する必要があります。このスコープを使用して、IAMユーザーがアクセスできるリソースのうち、Federation Tokenの保有者がアクセスできるリソースをさらに絞り込むことができます。任意の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html"},"children":["パーミッションポリシー"]},"定義を使用できますが、パーミッションスコープは、トークンの生成に使用されたIAMユーザーのパーミッションのすべてまたはサブセットに限定されます。Session Tokenと同様に、Federation Token認証情報は、有効期限が切れておらず、元のIAM認証情報に関連付けられたパーミッションが変更されていない限り有効です。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AWS STS一時セキュリティ認証情報は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://aws.amazon.com/cli/"},"children":["AWS CLI"]},"または選択した言語の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://aws.amazon.com/tools/"},"children":["AWS SDK"]},"を使用して生成できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"session-token","__idx":26},"children":["Session Token"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ aws sts get-session-token --duration-seconds 900\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"Credentials\": {\n        \"SecretAccessKey\": \"YYYYYYYYYY\",\n        \"SessionToken\": \"ZZZZZZZZZZ\",\n        \"Expiration\": \"2015-12-23T05:11:14Z\",\n        \"AccessKeyId\": \"XXXXXXXXXX\"\n    }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"federation-token","__idx":27},"children":["Federation Token"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"aws sts get-federation-token --name temp_creds --duration-seconds 900   --policy '{\"Statement\": [{\"Effect\": \"Allow\", \"Action\": [\"s3:GetObject\", \"s3:ListBucket\"], \"Resource\": \"arn:aws:s3:::bucketname\"}]}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"FederatedUser\": {\n        \"FederatedUserId\": \"523683666290:temp_creds\",\n        \"Arn\": \"arn:aws:sts::523683666290:federated-user/temp_creds\"\n    },\n    \"Credentials\": {\n        \"SecretAccessKey\": \"YYYYYYYYYY\",\n        \"SessionToken\": \"ZZZZZZZZZZ\",\n        \"Expiration\": \"2015-12-23T06:06:17Z\",\n        \"AccessKeyId\": \"XXXXXXXXXX\"\n    },\n    \"PackedPolicySize\": 16\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ここで: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["temp_cred"]},"はFederatedトークン/ユーザーの名前、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bucketname"]},"はアクセスを許可するバケットの名前です。詳細については",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-s3"},"children":["ARN仕様"]},"を参照してください。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s3:GetObject"]},"と",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s3:ListBucket"]},"は、AWS S3バケットの基本的な読み取り操作です。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AWS STS認証情報は取り消すことができません。有効期限が切れるか、認証情報の生成に使用された元のIAMユーザーのパーミッションを削除または除去するまで有効なままです。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["一時セキュリティ認証情報が生成されたら、次のように",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["seed.yml"]},"ファイルに",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SecretAccessKey"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AccessKeyId"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SessionToken"]},"をコピーします。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: s3_fme\n  access_key_id: XXXXXXXXXX\n  secret_access_key: YYYYYYYYYY\n  include_file_name: true\n  session_token: ZZZZZZZZZZ\n  bucket: sample_bucket\n  path_prefix: path/to/sample_file\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["そして、通常どおりS3用データコネクタを実行します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"認証情報の有効期限","__idx":28},"children":["認証情報の有効期限"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["STS認証情報は指定された時間後に有効期限が切れるため、認証情報を使用するデータコネクタジョブは、認証情報の有効期限が切れると最終的に失敗し始める可能性があります。"," ","STS認証情報の有効期限が切れたと報告された場合、データコネクタジョブは最大回数(5回)まで再試行し、最終的に'error'ステータスで完了します。"]}]},"headings":[{"value":"Amazon S3 ファイル名メタデータ拡張インポートインテグレーション","id":"amazon-s3-ファイル名メタデータ拡張インポートインテグレーション","depth":1},{"value":"異なるAmazon S3インポートインテグレーション","id":"異なるamazon-s3インポートインテグレーション","depth":2},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure Data Integration の静的 IP アドレス","id":"treasure-data-integration-の静的-ip-アドレス","depth":2},{"value":"Treasure コンソールで新しい認証を作成","id":"treasure-コンソールで新しい認証を作成","depth":2},{"value":"Treasure コンソール経由でAWS S3データをTreasure Dataに転送","id":"treasure-コンソール経由でaws-s3データをtreasure-dataに転送","depth":2},{"value":"New Source","id":"new-source","depth":3},{"value":"ソーステーブルの設定","id":"ソーステーブルの設定","depth":3},{"value":"データ設定","id":"データ設定","depth":3},{"value":"Filters","id":"filters","depth":3},{"value":"Data Preview","id":"data-preview","depth":3},{"value":"Data Placement","id":"data-placement","depth":3},{"value":"一度だけ実行","id":"一度だけ実行","depth":4},{"value":"定期的に繰り返す","id":"定期的に繰り返す","depth":4},{"value":"Data Connector ジョブの検証","id":"data-connector-ジョブの検証","depth":2},{"value":"データインポートの問題をトラブルシューティングするには?","id":"データインポートの問題をトラブルシューティングするには","depth":3},{"value":"S3ジョブのデータコネクタが長時間実行される場合はどうすればよいですか？","id":"s3ジョブのデータコネクタが長時間実行される場合はどうすればよいですか","depth":3},{"value":"Workflow経由でAWS S3からインポート","id":"workflow経由でaws-s3からインポート","depth":2},{"value":"CLI (Toolbelt)経由でAWS S3からインポート","id":"cli-toolbelt経由でaws-s3からインポート","depth":2},{"value":"CLIを使用してコネクタを設定","id":"cliを使用してコネクタを設定","depth":3},{"value":"Seed設定ファイル(seed.yml)の作成","id":"seed設定ファイルseedymlの作成","depth":3},{"value":"フィールドの推測 (load.ymlの生成)","id":"フィールドの推測-loadymlの生成","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":3},{"value":"実行のスケジュール設定","id":"実行のスケジュール設定","depth":3},{"value":"IAMパーミッション","id":"iamパーミッション","depth":3},{"value":"一時認証情報プロバイダとしてのAWS Security Token Service (STS)の使用","id":"一時認証情報プロバイダとしてのaws-security-token-service-stsの使用","depth":3},{"value":"Session Token","id":"session-token","depth":4},{"value":"Federation Token","id":"federation-token","depth":4},{"value":"認証情報の有効期限","id":"認証情報の有効期限","depth":4}],"frontmatter":{"seo":{"title":"Amazon S3 ファイル名メタデータ拡張インポートインテグレーション","description":"Amazon S3のCSVファイルからファイル名メタデータを含むデータをインポートする拡張インテグレーションの設定方法と前提条件を解説します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/amazon-s3-filename-metadata-enhanced-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}