Events
The daemon records events about what happens to the instances, snapshots,
images, networks, volumes and kernels on its host, and why.
dicer events shows them, and dicer inspect shows
an instance’s last ten. Each event below is listed by the name those
commands print, and by its action in --format json.
Fields
| Field | Description |
|---|---|
time | When it happened. |
kind | What it is about: an instance, a snapshot, an image, a network, a volume or a kernel. |
id | The resource’s ID. It tells apart two resources that had the same name at different times. Images have no ID, and are known by their name. |
name | The resource’s name. An image’s name is its full reference, such as docker.io/library/busybox:latest, which dicer events shortens to busybox:latest. |
action | What happened: one of the events below. |
message | What happened, in one line for a person to read. |
attributes | What happened, for a program. Each event’s attributes are listed in its table. Every value is a string. |
The events file
The daemon keeps events in events.jsonl in its
data_dir, which is
/var/lib/dicer/events.jsonl by default. It writes one JSON object per
line, so events survive a restart of the daemon. It keeps the most recent
events.max_count, 10,000 by default.
With events.max_age set, it also drops
events older than that.
dicer events asks the running daemon for events. When no daemon is
running, you can read the file directly, with jq for example.
The file and dicer events --format json write kind and action in
lower case, such as instance and died, as the tables below name them.
The API names them in upper case, with the enumeration’s name in front:
EVENT_KIND_INSTANCE and EVENT_ACTION_DIED.
{"time":"2026-09-22T09:52:07Z","kind":"instance","id":"r4kq2x7m9c1v8b3n6p0z5wte","name":"grafana","action":"died","message":"Instance failed after running for 2h 14m: exit code 1","attributes":{"exit_code":"1"}}Instances
| Event | action | Attributes | What it means |
|---|---|---|---|
| Created | created | image, snapshot, source_instance | The instance was created: its definition was recorded, after pulling its image if needed. Nothing is booted yet. image is its image’s reference. An instance forked with dicer snapshot fork has snapshot, the snapshot it is a copy of. One forked with dicer fork has source_instance, the instance it is a copy of. |
| Updated | updated | The instance’s definition was changed with dicer update. The message lists what changed and when it takes effect: at the next start, or, for a running instance’s restart policy, when it next ends. | |
| Renamed | renamed | previous_name | The instance was renamed. name is its new name, and previous_name is the one it had before. |
| Resized | resized | vcpus, memory_bytes | The running instance was given more or fewer vCPUs or memory with dicer resize, and keeps them from its next start. vcpus and memory_bytes are what it has now. A resize that the guest failed records no event. |
| Started | started | ip, restart_count, snapshot, source_instance, woken_by_port | The instance’s hypervisor started and the guest is booting or resuming. ip is its address. See How an instance was started for the other attributes. |
| Stopped | stopped | The instance was stopped with dicer stop. The message says whether the guest shut down within the grace period or its hypervisor was ended. For an instance on standby, it says that what it froze was discarded. | |
| Paused | paused | The instance’s vCPUs were halted with dicer pause. Its memory is kept. | |
| Resumed | resumed | A paused instance’s vCPUs were started again with dicer resume. | |
| Standby | standby | size_bytes, idle_seconds | The instance was put on standby: its guest was frozen to disk and its hypervisor ended, releasing its CPU and memory. size_bytes is the disk space the frozen guest takes. An instance put on standby for being idle for its standby_after has idle_seconds, how long it had been idle. One put on standby with dicer standby has none. Resuming it records Started. |
| Exited | exited | exit_code | The guest ended cleanly, of its own accord: its program exited with code 0, which is exit_code. |
| Died | died | exit_code | The guest ended in failure, or the instance failed to start. See Why an instance died. |
| Restarting | restarting | delay, restart_count | The instance ended, recorded as Exited or Died just before, and its restart policy will start it again. delay is how long it waits first, as a Go duration. restart_count is which restart in a row this is. |
| Healthy | healthy | The instance’s health check passed, after it had been starting or unhealthy. The message has the first line of the check’s output. | |
| Unhealthy | unhealthy | failing_streak | The instance’s health check failed failing_streak times in a row, which is its number of retries. The message has the first line of the last check’s output. |
| Snapshot restored | snapshot_restored | snapshot | The instance was put back as the snapshot named snapshot holds it. From a memory snapshot, it was started with its memory and overlay disk rolled back to when the snapshot was taken, and no Started event is recorded. From a disk snapshot, only its overlay disk was rolled back, and it was left stopped. |
| Deleted | deleted | The instance was deleted: its definition and disks were removed, and its address on its network was released. Its snapshots are kept. |
How an instance was started
A Started event’s attributes say how the instance came to start:
| How | Attributes | Message begins |
|---|---|---|
| Started by its restart policy | restart_count: how many times in a row the policy has restarted it | Restarted instance |
| Started any other way | none of these | Started instance |
| Forked from a memory snapshot, and resumed | snapshot: the snapshot it was forked from | Started instance from memory snapshot … |
| Forked from a running or paused instance | source_instance: the instance it was forked from | Started instance from instance … |
Resumed from standby by dicer start | none of these | Resumed instance from standby |
| Woken from standby by a connection | woken_by_port: the published host port the connection came to | Resumed instance from standby, woken by a connection |
Why an instance died
A Died event’s message says why the instance failed:
- its program exited with a non-zero code, which
exit_codeis; - the guest reset, after a kernel panic or a reboot;
- the hypervisor exited;
- its health check failed, and its restart policy acts on that;
- it failed to start, or to resume from standby;
- a start or stop was interrupted by the daemon restarting.
exit_code is present only when the guest reported one. When the restart
policy gives up, the message says so too.
An instance that crashes and is restarted by its policy records Died,
Restarting and Started in turn. dicer events --name NAME is therefore its
timeline: why it ended, how long it waited, and how it came back.
Snapshots
Every snapshot event has an instance attribute: the instance the snapshot
was taken of, by the name it had at the time.
| Event | action | Attributes | What it means |
|---|---|---|---|
| Created | created | instance, kind, size_bytes, paused_seconds | The snapshot was taken with dicer snapshot create. kind is memory, of a running or paused instance’s memory and overlay disk, or disk, of a stopped or failed instance’s overlay disk alone. size_bytes is the disk space it takes. paused_seconds is how long a running instance was paused to take it. Copying the overlay disk can make that long where the filesystem cannot reflink. A snapshot that paused nothing has no paused_seconds. |
| Deleted | deleted | instance | The snapshot was deleted, along with its files. |
Restoring a snapshot is recorded as an event of its instance: Snapshot restored, above.
Images
Every image event has a digest attribute: the image’s sha256: digest.
| Event | action | Attributes | What it means |
|---|---|---|---|
| Pulled | pulled | digest, size_bytes | The image was pulled and made into a boot disk. size_bytes is the boot disk’s size. The message says how much was downloaded, or that the layers were already cached. |
| Collected | collected | digest, reason | Garbage collection removed the image and its boot disk. reason is unused when no instance had used the image for longer than images.gc_max_unused_age. It is size when the image store was over images.gc_max_size and this image was the least recently used. |
| Deleted | deleted | digest, by | The image and its boot disk were removed. by is user when it was removed with dicer image delete, or prune when dicer image prune removed it because no instance used it. |
Networks
Every network event has subnet and gateway attributes.
| Event | action | Attributes | What it means |
|---|---|---|---|
| Created | created | subnet, gateway | The network was created with dicer network create, or it is the default network, which the daemon creates when it first starts. The message also says whether it is isolated or internal. |
| Deleted | deleted | subnet, gateway | The network was deleted, and the addresses it had allocated were released. |
Volumes
Every volume event has a size_bytes attribute.
| Event | action | Attributes | What it means |
|---|---|---|---|
| Created | created | size_bytes | The volume was created with dicer volume create, and formatted as ext4. |
| Deleted | deleted | size_bytes | The volume was deleted, along with its data. |
Kernels
Every kernel event has an arch attribute: the kernel’s architecture.
| Event | action | Attributes | What it means |
|---|---|---|---|
| Imported | imported | arch | The kernel was imported with dicer kernel import, or it is the default kernel, which the daemon puts on the host when it starts if it is not there. It is on the host. The message says its size, and when it had no checksum to verify it against. |
| Updated | updated | arch | The daemon was upgraded to a version that carries a newer default kernel, and has put it in place of the old one. |
| Deleted | deleted | arch | The kernel was deleted, along with its copy on the host. |