Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added excerpt, cleaned up a heading

...

  1. Open TD Console.

  2. Navigate to Integrations Hub >  Catalog

  3. Search and select Google Cloud Storage.


  4. The following dialog opens.


  5. Create a New Google Cloud Storage Connector


  6. Set the following parameters:

Parameters

Description

Authentication mode

Select a JSON keyfile. This method uses the JSON keyfile generated from the Google Developers Console.

JSON Keyfile

Copy and paste the contents of the JSON keyfile generated from the Google Developers Console in this field

Application Name

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

  1. Type a name for your connection.

  2. Select Done.

Transfer Your

...

Google Cloud Storage Account Data to Treasure Data

After creating the authenticated connection, you are automatically taken to Authentications.

...

  1. Select Next.

  2. The Source Table dialog opens. Edit the following parameters


Parameters

Description

Bucket

Google Cloud Storage bucket name (Ex. your_bucket_name)

Path Prefix

Prefix of target keys. (Ex. logs/data_)

Path Regex

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)


Incremental

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.

Example: CloudFront

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:

...

  1. Select Next.
    The Data Settings page opens.

  2. Optionally, edit the data settings or skip this page of the dialog.



PARSER 

Parameters

Description

Type

Parses a value as a specified type. And then, it stores after converting to Treasure Data schema.

  • boolean

  • long

  • timestamp: will be imported as String type at Treasure Data (Ex. 2017-04-01 00:00:00.000)

  • double

  • string

  • json

Default timezone

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)

Schema Settings

You can name the columns and set the data type.


Data Preview 

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.

...

Select Next.
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.

...

Excerpt Include
Data Preview
Data Preview
nopaneltrue


Data Placement

Excerpt Include
Data Placement
Data Placement
nopaneltrue

...