Logs
A table for rows that arrive and stay, such as readings, positions and events.
A log is an input table whose rows are only added. Each row has a time, and a log can keep far more rows than a table people edit by hand. Use one for anything a device or a system reports over and over: sensor readings, positions, status events, scans.
A log gives up one thing for that: its rows cannot be changed or removed one by one. If people need to correct entries, keep an ordinary input table.
Make a table a log
Open Log settings
In Data, open the menu on an input table and choose Log settings. Only an admin of the space sees it.
Pick the time column
The column that says when each row happened. Every row already in the table needs a time there.
Pick a key column
Optional. The column that says what a row is about, such as a machine or a sensor. With a key, a page can ask for the latest row of each.
Choose how long to keep rows
Every row, or 30 days, 90 days or a year. Rows older than that are removed for good.
A log cannot be turned back into a table. Its time column and key column are fixed from then on.
You can also ask an AI assistant connected to your space to make a table a log.
Showing a log
Build a dashboard or app on a log the way you would on any dataset. Because a log can be large, a page asks for the part it draws:
- a window of time, such as the last hour
- the rows about one key
- the latest row for each key
A log holding more than 100,000 rows is read only in one of these ways. A page that asks for all of it is told so, with the ways to ask.
Say which you want when you describe the page, for example "show where each vehicle is now, and the last hour of readings for the one I pick". A published page shows a new row within about a second of it arriving.
Sending rows
Rows are sent to a log, or kept from a source you have connected.
Sent to it:
- From a page. A dashboard or app with entry controls adds rows as people or devices use it. A page that has been out of reception sends what it queued in one write.
- From the API.
POST /tables/{id}/rowstakes one row, or an array of up to 5,000. See the API reference. - From an AI assistant connected to your space.
Kept from a source, by switching on Keep new rows in a log in the source's settings:
- A webhook. Each payload it receives becomes a row. See Webhook.
- A database table. For a table that only grows, Flitch asks for the rows added since it last looked, as often as every 10 seconds, and adds them. You choose the column that tells new rows apart, such as a created time or an id. Choose one the database sets as the row is added: a row added later with an earlier value is missed, and the table's settings say so when rows start arriving late. For Postgres, MySQL and SQL Server, and the databases that speak their protocols.
- A MyGeotab feed. Each refresh adds the records the feed brought, with no cap on how many are kept.
New log in that setting makes a log from the source's own columns, so there is nothing to create first.
How often a device may write
Each device may write to a page ten times a minute by default. One write can carry many rows, so a device that reports every second can send a minute of readings at a time and stay well inside that.
An admin can raise the rate for a log in Log settings, to once a second or ten times a second.
How long rows are kept
A log keeps every row unless you choose otherwise in Log settings. You can change it at any time. Shortening it removes the rows older than the new period, and they cannot be brought back.
Storage
A log counts toward your space's storage. Admins are emailed when a space reaches 80% of the storage its plan includes, and again at 100%, with the tables holding the most. Nothing stops at that point: storage beyond the allowance is charged from your balance.