Learn · Guides
Connect a data feed
Point the platform at a data source and watch the first events land.
Checked against the product on · written for people writing code
A feed is a door data comes through. When the feed is running, every record it brings in becomes an event about a watched thing, and your rules weigh it.
This takes about five minutes. At the end you will see events arriving in the live tail.
Before you start
- An account with the admin role in the work area you are adding the feed to.
- The source: a file location, an endpoint, a mailbox, or a telemetry stream.
- The credential the source needs, if it needs one.
Add the feed
Watch
Data feeds
| Name | Kind | Schedule | Last run | State |
|---|---|---|---|---|
| Plant telemetry | OpenTelemetry | streaming | 4 seconds ago | Healthy |
| Support inbox | every 5 minutes | 2 minutes ago | Healthy | |
| Nightly export | CSV | daily 02:00 | 9 hours ago | Healthy |
Open Data feeds and select Add feed.1
Pick the kind that matches your source.
The kind decides which fields appear next. A field shows only when the kind and source location call for it.
Fill in the source and the schedule.
A CSV feed takes a source location of upload, url, s3, or sftp. A streaming source takes a token.
Choose a sync mode.
Reload replaces everything. Append adds new rows. Upsert matches on a key and updates in place. Replace swaps the whole set in one step.
Select Test connection, then Create feed.
The test reads a sample without writing anything.
Watch
Add feed
- Kind
- CSVThe shape of the data coming in.
- Name
- Nightly export
- Source location
- URLupload · url · s3 · sftp
- URL
- https://example.com/exports/latest.csv
- Schedule
- daily 02:00
- Sync mode
- upsertreload · append · upsert · replace
Fill in the form
Set the kind, name, source and schedule.1
Select Create feed.2
The feed starts on its schedule. A streaming feed starts at once.
Watch it land
Watch
Plant telemetry · live
| Time | Watched thing | Kind | Payload |
|---|---|---|---|
| 12:04:11 | pump-12 | observation | reading 41.2 F |
| 12:04:07 | pump-12 | observation | reading 40.9 F |
| 12:04:02 | pump-09 | observation | reading 38.4 F |
Open the feed and read the banner.1
It reports the rate of arrival for the last minute.
Read the tail.2
Each row names the watched thing the event was filed under.
When something goes wrong
| What you see | What it means | What to do |
|---|---|---|
| The test connection fails with 401 or 403 | The credential is wrong or expired. | Re-enter the credential. For OAuth sources, reconnect the account. |
| The feed runs and the tail stays empty | The source returned no new records for the sync mode. | Switch the sync mode to reload for one run, then switch back. |
| Events land under one watched thing | The key field that names the watched thing is missing. | Set the key field in the feed mapping. |
| The state reads Backing off | The source rejected several pulls in a row. | Read the run history on the feed for the response the source gave. |