Upload data to Lentiq via SFTP
Lentiq has multiple data ingestion options tailored to different data volumes.
- Ingest your smaller files using our file browser interface upload or drag and drop options, allowing your to ingest up to 5 GB of data.
- Ingest bigger files using a simple cURL command from your Unix-based terminal:
curl -X PUT -H "Content-Type: multipart/form-data" -H "X-DestinationPath: <enter-your-destination-path>" -H "Authorization: APIKEY <insert-your-api-key>" -F "file=@authentication.log" https://api.lentiq.com/api/v1/datamanagement/obj/upload/b/<enter-your-data-pool-name>.<enter-your-project-name>
- <enter-your-destination-path> - example /destination.csv
- <insert-your-api-key> - your API key can be retrieved from the User settings > API credentials menu.
- <enter-your-data-pool-name> - the name of your data pool.
- <enter-your-project-name> - the name of your project.
- Ingest bigger files using a SFTP client through our SFTP Proxy application.
Prerequisites
You need to have a data pool and a project up and running on Lentiq in order to create a SFTP application, and you need to have a project quota that can allow you to add a new application.
We recommend to keep your SFTP Proxy application up and running only for the timeframe during which you upload your data.
Creating a new SFTP Proxy application
Go to the Application view.
Click SFTP Proxy in the application list on the left.
Configure the name of the application, the CPU and RAM resources that will be allocated to it.
After the SFTP Proxy application has been created, check the SFTP Proxy connection URL from the SFTP Proxy application widget.
Make sure your IP has been added to the data pool's firewall. You can check this in the Data Pool settings, under the Firewall tab.
Setup your local SFTP client and upload the data
In order to connect to the remote SFTP Proxy application you need to have a SFTP client configured. The setup is different depending on the local operating system.
MacOS / Unix based operating systems
On MacOS/Unix based operating systems you can use the Terminal application or any other SFTP client. You should have SFTP installed by default. If you don't, make sure you install it before proceeding. It is usually embedded in the SSH/OPENSSH operating system packages.
Once you have the client installed you can use your Lentiq user account email address and SFTP Proxy connection string to connect your local SFTP client to the remote SFTP Proxy and begin uploading your data.
Create the initial SFTP connection
Enter the API key. You can find your Lentiq API key in the user settings menu.
Copy your API key and paste it into the terminal:
Once connected to the SFTP Proxy you can explore the commands exposed by the service.
Upload a local file to the remote object storage system.
Check to see if the file was uploaded successfully.
You can also see the file in the Lentiq file browser.
Windows
On Windows you can use WinSCP or any other SFTP client. Make sure a client is installed before proceeding.
Once you have the client installed you can use your Lentiq user account email address and SFTP Proxy connection string to connect your local SFTP client to the remote SFTP Proxy and begin uploading your data.
Create the initial SFTP connection.
Enter the API key. You can find the API key in the user settings menu.
Copy your API key and paste it into the SFTP client.
Upload a local file to the remote object storage system.
You can find the uploaded file using the Lentiq File Browser.