Ingest File Data
This guide walks you through the steps to upload historical data from a file into Digital Harbour. File-based ingestion supports CSV, XML, JSON, and TXT formats, allowing you to bring existing datasets into the platform for visualization, analysis, and monitoring alongside your real-time data.
Requirements
Before uploading file data, you will need the following:
- A Digital Harbour user account. See Create an Account.
- An approved and activated organization. See Create an Organization.
- A platform and instrument created and configured in your organization. See Edit Platforms and Instruments.
- A data file in one of the supported formats: CSV, XML, JSON, or TXT.
Step 1: Navigate to Upload Data
Open the Upload Data dialog box by selecting the upload icon on the instrument row in the Manage Platforms view. For instructions on navigating to this view, see Ingest Streaming Data — Navigate to Upload Data.

This opens the Upload Data dialog box. Select File Upload to begin.

Step 2: Choose a File Type
Select the format that matches your data file: CSV, XML, JSON, or TXT.

The dialog box displays step-by-step instructions for formatting and uploading your file for the selected type. For CSV, the instructions are:
- Select the column position of your timestamp, then download the CSV template.
- Open the template — it contains the required headers and an example row.
- Add your data rows using those headers.
- Save the file and drag it into the upload box to upload.
Step 3: Select Timestamp Column Position and Download Template
Before you can download the template or upload a file, you must specify the Timestamp column position — the column number where the timestamp appears in your file.

The Timestamp column position field is required. The Download CSV template button and the upload area remain disabled until a position is selected.
Once you've selected the timestamp position, select Download CSV template to download a template pre-populated with the correct headers for your instrument's variables.

The template includes one column for each variable defined on the instrument, with the timestamp column placed at the position you specified. For example, if your instrument has 6 variables and you select Column 7, the timestamp will appear as the last column:

Step 4: Fill In and Save the Template
Open the downloaded template and replace the example row with your actual data. Each row represents one data record at a point in time.

Column names in your file are matched to instrument variable names automatically. Names are sanitized during matching — spaces and special characters are converted to underscores. For example, a column named Water Temperature will be matched to the variable water_temperature.
Save the file once your data is ready.
Step 5: Upload the File
Drag and drop your file into the upload box, or select the box to browse for it. The accepted format for CSV is a file with a timestamp column and instrument variable columns.
Once the file is loaded, a data preview appears showing:
- Dataset name — the InfluxDB measurement name the data will be written to (editable)
- Rows — total number of data rows detected
- Time column — the timestamp column identified in your file
- Time range — the earliest and latest timestamps in the dataset
- Matched columns — the variable columns successfully matched to your instrument
- Preview — a table showing the first 5 rows of data

Review the preview to confirm the data looks correct, then select Upload N rows to begin ingestion.
If there are columns in your file that don't match any configured variable, consider updating your instrument's variables before uploading to ensure full compatibility. See Edit Platforms and Instruments.
Supported File Formats
CSV
timestamp,temperature_C,salinity_PSU,depth_m
2024-03-25T00:00:00Z,21.5,34.2,10.0
2024-03-25T00:01:00Z,21.6,34.1,10.0
The timestamp column can appear in any position. Specify its position in Step 3.
JSON
[
{ "timestamp": "2024-03-25T00:00:00Z", "temperature_C": 21.5, "salinity_PSU": 34.2, "depth_m": 10.0 },
{ "timestamp": "2024-03-25T00:01:00Z", "temperature_C": 21.6, "salinity_PSU": 34.1, "depth_m": 10.0 }
]
XML
<data>
<row>
<timestamp>2024-03-25T00:00:00Z</timestamp>
<temperature_C>21.5</temperature_C>
<salinity_PSU>34.2</salinity_PSU>
<depth_m>10.0</depth_m>
</row>
</data>
TXT
timestamp,temperature_C,salinity_PSU,depth_m
2024-03-25T00:00:00Z,21.5,34.2,10.0
2024-03-25T00:01:00Z,21.6,34.1,10.0
TXT files follow the same delimiter-separated structure as CSV. The timestamp column can appear in any position. Specify its position in Step 3.
Verifying Uploaded Data
After the upload completes, verify your data has been ingested by navigating to the instrument and checking the data preview, or use the Plot Utility to visualize the uploaded dataset.
If data is not appearing after upload, check the following:
- The correct timestamp column position was selected before downloading the template.
- The timestamp values are in a recognized format (ISO 8601, Unix milliseconds, etc.).
- At least one non-timestamp column matches a variable configured on the instrument.
Next Steps
- Ingest Streaming Data — connect a device for real-time data ingestion
- Analyze Data in the Plot Utility — visualize and explore your ingested data
- Configure Data Monitoring Alerts — set up email alerts when data exceeds threshold values