Open TD Console.
Navigate to Integrations Hub > Catalog
Search and select Google Cloud Storage.
The following dialog opens.
Create a New Google Cloud Storage Connector
Set the following parameters:
Select a JSON keyfile. This method uses the JSON keyfile generated from the Google Developers Console.
Copy and paste the contents of the JSON keyfile generated from the Google Developers Console in this field
Treasure Data GCS Output is the default value. As this is an arbitrary client name associated with API requests, you can leave the default value (Treasure Data GCS Output).
Name Your Connection
Type a name for your connection.
Google Cloud Storage Account Data to Treasure Data
After creating the authenticated connection, you are automatically taken to Authentications.
The Source Table dialog opens. Edit the following parameters
Google Cloud Storage bucket name (Ex. your_bucket_name)
Prefix of target keys. (Ex. logs/data_)
regexp to match file paths. If a file path doesn’t match with this pattern, the file is skipped. (Ex. .csv$ # in this case, a file is skipped if its path doesn’t match with this pattern)
Start after path
Inserts last_path parameter so that the first execution skips files before the path. (Ex. logs/data_20170101.csv)
Enables incremental loading. If incremental loading is enabled, config diff for the next execution will include last_path parameter so that next execution skips files before the path. Otherwise, last_path will not be included.
Amazon CloudFront is a web service that speeds up the distribution of your static and dynamic web content. You can configure CloudFront to create log files that contain detailed information about every user request that CloudFront receives. If you enable logging, you can save CloudFront logfiles, shown as follows:
The Data Settings page opens.
Optionally, edit the data settings or skip this page of the dialog.
Parses a value as a specified type. And then, it stores after converting to Treasure Data schema.
Changes time zone of timestamp columns if the value itself doesn’t include time zone.
Total file count limit
Maximum number of files to read. (optional)
You can name the columns and set the data type.
You can see a preview of your data before running the import by selecting Generate Preview.
Data shown in the data preview is approximated from your source. It is not the actual data that is imported.
Data preview is optional and you can safely skip to the next page of the dialog if you want.
To preview your data, select Generate Preview. Optionally, select Next.
Verify that the data looks approximately like you expect it to.