Building a modern historian with KŌJŌ Stack: history meets object storage
KŌJŌ Stack writes plant history from the edge, through store-and-forward, straight into object storage your company already owns: on prem, or in AWS, Google Cloud or Azure. Open files, compacted, with minute, hour and day summaries, read back by the KŌJŌ Stack Historian Client.
The question
Where should plant history live for ten years, and who owns it?
Many industrial historians store data in vendor-defined archive formats.
Historian licensing is commonly tied to the number of tags or signals.
Getting historian data into a cloud data lake usually takes an extra integration step, often custom ETL.
The KŌJŌ Stack cloud historian keeps a site's history in your own object storage, in open Parquet or Iceberg formats. KŌJŌ Stack gets the data there and stops at storing it: the history is ready for whichever tools your company chooses that read Parquet or Iceberg.
Why object storage
A historian built on storage you already trust
Your history, your object storage
History lands in object storage your company already owns and controls: Amazon S3, Amazon S3 Tables, Google Cloud Storage, Azure Blob Storage and ADLS Gen2, or Ceph and SeaweedFS on prem. You supply the storage, the credentials and, for Iceberg, the catalog.
Open formats
Parquet files with KŌJŌ Stack's own index and no catalog to run, or Iceberg version 2 tables in your catalog. Parquet is an open source, column-oriented file format supported across many languages and tools; Iceberg is an open table format.
Summary tiers
Minute, hour and day summaries are built alongside the raw values, so wide trends read summaries instead of years of raw points. Each tier keeps its own retention. Recommended: raw values two years, minute summaries five years, hour and day summaries indefinitely.
Many sites, one store
Many sites, one runtime each, can write into one store. The Historian Client reads several sites in one request. Retention applies to every site in the store.
Lower-cost tiers for data read less
Raw data can move to colder, lower-cost storage classes for data that is read less: on Amazon S3, Google Cloud Storage and Azure, by default after 90 days and again after a year. S3 Tables uses Intelligent-Tiering. Summaries stay in the standard class.
Write-once history
A write counts only once it is stored and indexed, and a batch the edge replays after an outage never writes a second copy. Only retention or an explicit Admin delete of a site's data removes history.
Open by specification
The Iceberg REST catalog API is a published open specification under the Apache 2.0 license, and AWS, Google, Snowflake and Microsoft each offer a managed catalog that speaks it.
Durability, in the providers' own words
Amazon S3 is designed for 99.999999999% (11 nines) durability, Google Cloud Storage states 11 nines of annual durability, and Azure Blob Storage offers at least 11 nines. Their lower-cost classes for data read less still read back in milliseconds. These are the cloud providers' published figures, not KŌJŌ Stack's.
How it works
Edge to object storage, no database in between
The cloud historian runs in the KŌJŌ Stack runtime at the edge and writes the store itself. Each site's points land compacted, sorted and indexed per site and day, with minute, hour and day summaries built alongside.
No database or query service sits between the store and the reader: the Historian Client reads the files straight from the store. In the Iceberg layout, your catalog keeps the table metadata, and the data files are read and written with the destination's own storage credentials.
One runtime can write to every kind of store at once, each destination with its own pipeline and its own health. Object storage can also sit behind an existing TimescaleDB or InfluxDB 3 historian as its archive, beyond the database's retention.
The path of a point
Edge
KŌJŌ Stack collects and processes plant data in its pipelines at the edge.
Store-and-forward
Pipelines deliver through the runtime's local buffer, which replays after an outage.
Your object storage
The cloud historian writes compacted raw values plus minute, hour and day summaries, as Parquet or Iceberg.
Historian Client
Reads the files straight from the store. With Iceberg it asks the catalog only for table metadata.
History is written in batches: the newest values are readable about 2.5 minutes after collection.
Supported targets and catalogs
Five storage targets, two layouts
Write Parquet files with KŌJŌ Stack's own index and no catalog to run, or Iceberg version 2 tables in your catalog: AWS Glue, S3 Tables, Google BigLake, or an Iceberg REST catalog such as Lakekeeper or Apache Polaris.
Amazon S3
Layouts and catalogs
Parquet, or Iceberg v2 in AWS Glue Data Catalog or another Iceberg REST catalog
Storage classes for raw data
Standard-Infrequent Access after 90 days, Glacier Instant Retrieval after a year
Amazon S3 Tables
Layouts and catalogs
Iceberg v2 in S3 Tables (fixed layout)
Storage classes for raw data
Raw table created with AWS Intelligent-Tiering, which moves data by access
Google Cloud Storage
Layouts and catalogs
Parquet, or Iceberg v2 in the Google BigLake metastore or an Iceberg REST catalog such as Lakekeeper
Storage classes for raw data
Nearline after 90 days, Coldline after a year
Azure Blob Storage and ADLS Gen2
Layouts and catalogs
Parquet on either; Iceberg v2 needs ADLS Gen2 and an Iceberg REST catalog such as Lakekeeper
Storage classes for raw data
Cool after 90 days, Cold after a year, moved by KŌJŌ Stack itself
On prem: Ceph RGW and SeaweedFS (lab-tested)
Layouts and catalogs
Parquet, or Iceberg v2 with Lakekeeper as the REST catalog, also on prem
Storage classes for raw data
Not available: KŌJŌ Stack does not move this data between classes
Also supported: Microsoft OneLake (Fabric) as an Iceberg catalog on Azure, Snowflake Open Catalog as an Iceberg REST catalog, and Azure managed identity for a runtime on Azure.
Set it up
Creating a store takes one form
- 1
Prepare the storage and an identity
Create the object storage for the history and an identity for the runtime with the permissions listed for your target below. Give each store a prefix of its own.
- 2
Put the credentials in the secret store
Keys, client secrets and CA bundles live in the KŌJŌ Stack secret store and are picked in the form as references, never typed in.
- 3
Create the cloud historian destination
One form: storage target, layout (Parquet or Iceberg), storage and prefix, site, retention per tier and storage classes.
- 4
Test Connection
Checks that the store is reachable with the given credentials and, for Parquet, that it honors conditional writes, which keep every file write-once. For Iceberg it creates nothing; on a new namespace it answers connected with a warning.
- 5
Save, then point a pipeline at it
Save checks again before the destination is created; for Iceberg, saving creates the namespace and its eight tables. A pipeline that uses the destination starts the writes.
- 6
Add the store to the Historian Client
One Client source per store, with a credential that only needs to read. Then grant Site access to the people and groups who should see each site.
Prerequisites and permissions per target
Amazon S3
- S3 storage in the AWS Region you choose.
- A runtime identity that may put, get and delete objects, manage multipart uploads, list the contents, and read and write the lifecycle configuration behind retention and storage classes: s3:PutObject, s3:GetObject, s3:DeleteObject, s3:AbortMultipartUpload, s3:ListMultipartUploadParts, s3:ListBucket, s3:GetLifecycleConfiguration and s3:PutLifecycleConfiguration.
- Access keys from the KŌJŌ Stack secret store, or none at all if the runtime already runs with an AWS role.
- For Iceberg in AWS Glue: the AWS account ID. The history becomes eight Iceberg v2 tables in one Glue namespace.
Amazon S3 Tables
- S3 Tables storage and its ARN. Paste the ARN and the AWS Region follows from it.
- A runtime identity with the twelve S3 Tables actions the module documentation lists: read the storage, read and create namespaces and tables, read and write table data and metadata, set each table's maintenance, and read and set its storage class.
- A namespace of its own for each store.
- KŌJŌ Stack compacts these tables itself, so it turns S3 Tables' compaction off for them, sets their snapshot management, and leaves the cleanup of files no table uses to S3 Tables.
Google Cloud Storage
- Cloud Storage for the history and a service account for the runtime with storage.objects.create, storage.objects.get, storage.objects.list and storage.objects.delete, plus storage.buckets.get and storage.buckets.update for the lifecycle rules. Without those last two it still writes, and Health names the missing permission.
- The service account's JSON key from the KŌJŌ Stack secret store. A runtime that runs on Google Cloud can use its own Google identity instead.
- The project ID is optional for the Parquet layout.
- For Iceberg in the Google BigLake metastore: the warehouse is this same object storage, the project ID is required (the catalog requests are billed to it), and the service account needs both the BigLake editor role and the Service Usage Consumer role.
Azure Blob Storage and ADLS Gen2
- A storage account and a container for the history. A flat Blob Storage account and ADLS Gen2 both work, and KŌJŌ Stack detects which one it is.
- The runtime signs in as an Entra service principal (recommended: tenant ID, client ID and the client secret from the KŌJŌ Stack secret store) with the Storage Blob Data Contributor role on the container or the account. No Azure management permission is needed.
- An account key or a SAS token also work; Microsoft discourages account keys, and a tenant may disable them.
- For Iceberg: an ADLS Gen2 account (a flat account takes Parquet only, and KŌJŌ Stack says why) and a Lakekeeper warehouse on that storage with its own storage credential on the container.
On prem: Ceph RGW and SeaweedFS
- An S3-compatible gateway reachable from the runtime over HTTPS. Ceph RGW and SeaweedFS have been tested in the lab.
- Keys and the CA bundle from the KŌJŌ Stack secret store.
- Path-style addressing stays on for Ceph and SeaweedFS; the signing region is optional.
- The store must honor conditional writes, so a second write that would create the same file is refused. Test Connection checks it, and a store that ignores conditional writes is refused for the Parquet layout.
Read it back
The KŌJŌ Stack Historian Client
Trends, statistics and the Excel add-in read your object storage directly, with historian semantics.
One source per store
Add each store to the Historian Client as a cloud historian (object storage) source. Its credential only needs to read, and it stays on the Client's server; the browser never receives it.
Summaries wide, raw values zoomed in
Across wide spans the Client reads the stored summaries; zoomed in, it shows raw values at the time each was measured. All eleven retrieval modes work, with the same meaning as a TimescaleDB source.
Honest about retention
Past raw retention the trend says so plainly and points to the summaries for that span, instead of mixing them in silently.
Freshness you can see
History is written in batches, so the newest values are readable about 2.5 minutes after collection. A freshness chip on the trend says how fresh the data is.
Many sites, one request
Several sites read in one request, and a trend can overlay pens from several stores.
Site access
Grant a person or group one site, or All sites. An ungranted site isn't there for them: no values, no metadata, no search results. The Excel add-in reads as the signed-in user, with that user's site access.
With Iceberg, the Client reads the tables through the catalog's metadata and never lists the storage. Parquet and Iceberg stores read the same way in the Client.
Your history, your object storage
KŌJŌ Stack: the first mile for your industrial data. Book a live demo today.