The Path of Your Data
How measurements get into LooT – from the device through acceptance, buffer and storage to the live view – and which ways in exist.
The path of a measurement#
A measurement passes through the same stations in LooT, wherever it comes from:
- Delivery: A device, a gateway, a script or you send a value to LooT. The timestamp comes from the sender. If a data source delivers a value without one, the arrival time is used.
- Acceptance: The ingest server checks who is sending (token or sign-in), whether the permission suffices, and whether target, value type and timestamp fit. Invalid entries are rejected individually, valid ones are accepted. The response names what was rejected and why.
- Buffer (data sources only): Values of a data source first wait in its buffer and are passed on from there, in arrival order, to the assigned nodes. In normal operation the buffer is almost empty.
- Storage: A writer service stores the value in the node's time series. "Accepted" therefore only means "handed to the queue". The value is usually stored shortly afterwards, typically in under a second.
- Display and forwarding: As soon as a value is stored, it shows up live in the Explorer, the Object Browser, the node page and charts. LooT passes it on to further nodes over connections. Only values that were actually stored are forwarded.
If two values share a timestamp in the same node, the node's rule decides: First Serve keeps the first value, Last Serve the last one.
Ways in#
| Way | Used for | Sign-in |
|---|---|---|
| Data source via REST | Devices and gateways that send values by the names of their data points | Token of the source |
| Data source over the persistent device channel | Devices with a permanent connection that also accept commands | Token of the source |
| Device channel or REST with a user account | Your own software addressing nodes directly (path or id) | Keycloak sign-in, Write permission on the node |
| Workbench: Write value … | Entering single values by hand, tests | Your sign-in, Write permission |
| Command line | Single values, CSV files, files as values (see below) | Your sign-in |
| Components and scripts | Values that LooT computes itself | Permissions of the owner |
| Connections | Passing values from node to node automatically | Permissions when creating |
| Exchange | Importing archives, including values | Permissions on the target node |
For devices, a data source is the recommended way: it knows only its own data points, and you decide separately which node each data point writes to. The device does not need to know how your tree is built.
Single values in the workbench#
In the Explorer, open a node's context menu and choose Write value …. The Ingest test page takes the value, unit and timestamp and shows how many entries were accepted and rejected. You need the Write permission on the node. There are matching input fields for geo values, files and records.
Command line#
With the command line you write a value (loot write), import a CSV file (loot import, all or nothing: if the file contains errors, nothing is sent) or upload a file as the value of a custom node (loot upload).
The overflow buffer#
Every data source has its own buffer. It decouples delivery from processing: the device does not have to wait, and short disruptions cost no data. Values collect in the buffer when
- forwarding stops briefly, for example during maintenance,
- a data point is not yet assigned to a node (its values stay put and follow in the right order once it is assigned),
- the assignment is invalid, for example because the target node was deleted.
You set the size per source (default 5,000 values). If the buffer fills up anyway, the overflow rule applies:
| Rule | Effect |
|---|---|
| discard oldest values (default) | The oldest values drop out, the new ones arrive. Useful when the current state matters more than old values. |
| reject new values | New deliveries are refused (response 429 with a wait time), the buffer stays unchanged. Useful when every accepted value must be kept. |
A delivery always counts as a whole or not at all. You can see discarded and rejected values on the Buffer tab of the data source and in its log. Details are on the Data sources page.
Security#
- Tokens: Every data source has its own token (prefix
loot_ds_). LooT stores only a hash and the last four characters; you see the token in clear text exactly once, when creating and when renewing it. A token can only deliver values to its own source and is refused on every other interface. - A wrong or renewed token leads to 401, a deactivated source to 403. That tells you whether to enter a new token or reactivate the source.
- User accounts write only where they hold the Write permission. Where they may not read, the node does not even appear for them. More under Permissions.
- Tenants stay separate: A data source delivers only into nodes of its own tenant.
When values do not arrive#
- Open the data source and check Last arrival in the header: does anything arrive at all?
- If the buffer is full, an assignment is usually missing or forwarding has stopped. The Buffer tab shows it per data point.
- The log names overflows, failed conversions and invalid assignments.
- Direct writers receive the reasons for rejection in the response, for example unknown node, wrong value type or missing permission.
More help: Troubleshooting.