Events
What is an Event?
An event is a time-bound occurrence linked to an asset. It describes something that happened in your process, such as a production batch or maintenance activity.
Events have a start time and end time, and can include additional information like type, batch IDs, duration and other properties.
Data for events can come from the Historian, stored as Measurements or Calculations (directly or as Asset Properties), external databases, or manual entry.
Why does it matter?
Time-series data in Factry Historian shows how values change over time. Events give meaning to those changes by describing what happened and when.
They help you:
- Analyze unplanned downtime (what are the main reasons for it?)
- Track product changes or operator shifts (what was the batch ID at this point in time?)
- Identify causes of performance loss (did we notice a blocking event somewhere?)
- Create timelines and contextual reports (show me the output KPIs for last week's production for article X).
Events turn raw data into information you can act on by giving it context.
How does it fit in the system?
Events are always linked to an asset and exist alongside measurements, calculations and asset properties. They are used to describe specific time intervals of interest.
The detection mode of an event configuration sets how its events are created. There are four main detection modes:
- From timeseries: automatically, based on logic applied to measurements or asset properties (e.g. when the status tag goes to a 'running' state)
- From a schedule: automatically, based on a schedule (e.g. a shift schedule)
- From an external database: automatically, by reading events from a query on an external system (e.g. an MES)
- From users: manually, by users entering or editing events
Each event has:
- Start and end timestamps
- An event type
- A trigger
An event can have:
- Zero or more simple properties (e.g. the batch ID or total energy consumption)
- Zero or more periodic properties (e.g. temperature sampled throughout the batch)
- A parent event (e.g. a CIP cycle could be an event as part of a larger 'batch' event)
Unlike measurements, events describe something that happened over a period of time for a specific asset, rather than individual values.
Linking child events to a parent event
Available from version 8.3 and later.
When an event configuration has a parent configuration, each of its events (the child events) looks for a parent event among the events of that parent configuration. Settings on the child configuration control this:
- Parent window: with Child starts inside the parent (the default), a child links to the parent event whose window contains the child's start. With Child overlaps the parent, a child that starts before its parent still links, as long as the two windows overlap, and a child that stops after its parent keeps waiting for a later parent that overlaps it. When several parent events overlap the child, the latest-starting one wins.
- Wait for parent: how long to wait for a parent event after a child event stops. After that, the child is processed without a parent. A new configuration starts with 1d. Left empty, the child waits until a later parent event exists.
- Parent match (with named events on): By time (the default) links on the parent window alone. By name links a child only to a parent event with the same name, and the parent window picks between runs of a reused name. With By name and Wait for parent left empty, the child waits until a parent event with its name exists, however long that takes.
Existing event configurations keep their behavior after an upgrade: children link on their start time, with no wait limit.
Named events
Available from version 8.3 and later.
Named events are experimental and off by default. To turn them on, add named-events to the FEATURE_TOGGLES_ENABLE environment variable (comma-separated) and restart Factry Historian.
With named events, an event can have a name, typically a batch ID. Events of one event type with different names can overlap on one asset, so two batches can run at the same time. Events with the same name, or two unnamed events, cannot overlap.
- With Event name source set to Trigger, each event takes its name from the trigger value that started it.
- With Parent match set to By name, a child event only links to a parent event with the same name. It stays pending until a parent with its name exists, or until Wait for parent has passed. A later parent with another name does not end the wait.
- Users can name and rename manual events. The events overview shows the name and can filter on it.
Named events also add the From child events detection mode. It builds one parent event per name from the events of its child configurations, for example a batch from its unit batches. The parent event starts at the earliest child start and stops at the latest child stop. A child that starts within the Gap tolerance after the last child of that name stopped belongs to the same parent event.
Example
You configure an event type called LineStop, which is triggered when the line speed is below 0.1 for more than 60 seconds.
If the line stops at 13:12:20 and starts again at 13:18:05, an event is generated:
- Type: LineStop
- Start: 2025-08-12 13:12:20
- End: 2025-08-12 13:18:05
- Duration: 5 minutes 45 seconds
- Asset: Line3.Conveyor
- OrderID: L131-ABC
- Reason: Insufficient feed material
This event is now available in dashboards, reports, and can be used for performance analysis.
When you use it
You will use events when:
- Building shift or batch reports
- Monitoring machine stops
- Investigating root causes of production loss
- Visualizing state transitions on a timeline
- Tagging data with context for future analysis
You also use event configurations to define how automatic events should be detected.
Common misconceptions
- Events are not time series. They represent a start and end time, not a sequence of values.
- They are not limited to stops or batches. Any condition or change can be an event if it matters to your operation.
- Event logic does not always run in real time. In some cases, events are backfilled or reprocessed.
- Different event types can coexist on an asset and may describe overlapping time periods. However, each event type can only be configured once per asset.
Best practices
- Use clear names for event types and event properties.
- Configure metadata when configuring event properties, so that these are automatically reflected in the panels when querying data.
- Use the 'Re-evaluate' functionality to reprocess events over time, when trigger logic or additional properties have been added, and after validation