Uploading Files Using the SFTP Connector
Prior to uploading files see the latest implementation and usage notes at SFTP Connector.
To upload files
- On the Home page select a space or create a new one. This is the space to which the data will be uploaded.
- Go to Admin - Define Sources - Application Connectors. Alternatively, click the Use Extractors link on the Admin Navigation page.
- Click New in the Connections panel.
- In Connection Details name the connection.
- Select SFTP as the Connector Type.
- Create a connection to the SFTP site. It can be a Basic connection using a public key, or a Private Key connection.
- For a public key connection:
- Choose Basic Authentication.
- Enter your SFTP user name and password.
- Enter the Host name.
- Enter the host Port number.
- If using
a non-public SFTP server, enter a Public Key and Algorithm.
Supply this information that is available from the public key file when the SFTP server does not publish its key to external services. In some cases you do not need to enter this information.
- For a private key connection:
- Choose Private Key Authentication.
- Enter your SFTP user name.
- Enter the Host name.
- Enter the host Port number.
- Browse and upload the RSA Private Key file.
- If the private key is protected by a passphrase, enter the passphrase.
- Click Test Connection to verify the connectivity.
- Click Save Connection.
- Click Add Object.
- Enter the
Object Label to use for the source in Birst.
Important: Do not use the same name as an existing
saved object from this or any other connector. It must be unique within a Birst space. Important: This connector does not support the Source File Prefix, even though the field is shown in the UI.
Tip: If you edit an object and change the object label, a new object will be created with this name.
For the SFTP Connector, the Object Label is not used as the data source name. Naming is based on the file source as follows:
Text File Format | Data Source Name |
.csv | Same as file name |
.txt | Same as file name |
.xls or .xlsx |
If one sheet, then the data source name is the same as the workbook name. If more than one sheet, then the data source names match the sheet names. |
.zip |
Same as .csv, .txt, or single-sheet .xls or .xlsx file names. |
- Enter the
complete file name.
Tip: Wildcard characters are not supported for the file name. - Enter the path to the file.
- Click Validate. If it does not validate, check the path and file name.
- Once it validates, click Save. Birst lists the uploaded objects in the Data Sources table.
- In the Data Sources list, optionally give it an Extract Group Name. Click Save.
- Click Extract to upload the selected objects to Birst. Optionally select an Extract Group.
Depending on the size of the data objects, the extraction may take a few minutes. When the extraction completes the Data Sources table lists the timestamp of the extracted objects.
Tips:
- You can safely log out of Birst while the extraction takes place and log back in later.
- To cancel the extraction, click the Cancel Extract link under the progress bar.
- Click the Last Extract Log link to view the logs from the data extraction and check for errors.
- To remove an object from the extraction list, click the icon in the Remove column on the right.
Next Steps
- Look at
the raw data in Manage Sources tab. Iterate the extraction process, if
needed, to get the data you expect.
Tip: In the Manage Sources tab, Birst lists the file names not the label names. For .zip files, Birst lists the file names of each file included in the .zip. For Excel files, Birst lists each tab. - Process the data in the Process Data, Process New Data page. See Processing Data.
- Set up scheduling in the Process Data, Schedule Data Processing page. See Scheduling Extraction and Data Processing for Cloud Applications.