Skip to content

device.log

A row of the device’s own operation log: power, menu use, enrolments, deletes, settings, alarms, door events. Emitted by zk-push (2.0, 2.4 and 3.4), one per row of the operation log the clock uploads (on first contact it uploads the whole log). A row recording a deleted user or deleted fingerprints also gives a user.deleted or biometric.deleted event, unless the row is from before the device first reached the gateway (an old delete in the whole log is news to no one).

Schema id: urn:houradvantage:events:3:device.log

Fields

FieldTypeRequiredDescription
local_timestringyesWhen it happened, device wall-clock time as the device wrote it (“YYYY-MM-DD HH:MM:SS” on ZK); "" when the row has none.
kindstringWhat happened, as a word. Open: power_on, power_off, verify_failed, alarm, menu_entered, settings_changed, fingerprint_enrolled, password_enrolled, card_enrolled, user_deleted, fingerprint_deleted, password_deleted, card_deleted, data_cleared, time_set, factory_reset, punches_deleted, admins_cleared, group_access_changed, user_access_changed, access_time_changed, door_settings_changed, door_opened, user_enrolled, fingerprint_changed, duress_alarm, user_changed, stamp_rewound (the gateway’s own, from the package: a stamp the clock was to be handed was ahead of the present and an earlier one was given instead, vendor.zk saying the table and both stamps), and others may be added. Absent when the device’s code has no name (the code is under vendor).
actor_idstringWho did it: the user id of the administrator at the device, as the device wrote it; "" when the row names no one.
subject_idstringThe user it was done to (for verify_failed, fingerprint_enrolled, user_deleted, fingerprint_deleted, password_deleted, card_deleted). Absent when it was not done to a user.
vendorobjectWhat the device said in its own terms, under one key naming the vendor or package (“zk”, “brightlink”). Not part of this contract: see the package’s documentation. Absent when the package adds nothing.

Example

{
"local_time": "2026-10-01 08:00:00",
"kind": "user_deleted",
"actor_id": "0",
"subject_id": "1001",
"vendor": {
"zk": {
"code": 9,
"objects": [
"1001",
"0",
"0",
"0"
]
}
}
}

JSON Schema

device.log.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:device.log",
"title": "device.log: data",
"description": "A row of the device's own operation log: power, menu use, enrolments, deletes, settings, alarms, door events. Emitted by zk-push (2.0, 2.4 and 3.4), one per row of the operation log the clock uploads (on first contact it uploads the whole log). A row recording a deleted user or deleted fingerprints also gives a user.deleted or biometric.deleted event, unless the row is from before the device first reached the gateway (an old delete in the whole log is news to no one).",
"type": "object",
"properties": {
"local_time": {
"type": "string",
"description": "When it happened, device wall-clock time as the device wrote it (\"YYYY-MM-DD HH:MM:SS\" on ZK); \"\" when the row has none."
},
"kind": {
"type": "string",
"description": "What happened, as a word. Open: power_on, power_off, verify_failed, alarm, menu_entered, settings_changed, fingerprint_enrolled, password_enrolled, card_enrolled, user_deleted, fingerprint_deleted, password_deleted, card_deleted, data_cleared, time_set, factory_reset, punches_deleted, admins_cleared, group_access_changed, user_access_changed, access_time_changed, door_settings_changed, door_opened, user_enrolled, fingerprint_changed, duress_alarm, user_changed, stamp_rewound (the gateway's own, from the package: a stamp the clock was to be handed was ahead of the present and an earlier one was given instead, vendor.zk saying the table and both stamps), and others may be added. Absent when the device's code has no name (the code is under vendor)."
},
"actor_id": {
"type": "string",
"description": "Who did it: the user id of the administrator at the device, as the device wrote it; \"\" when the row names no one."
},
"subject_id": {
"type": "string",
"description": "The user it was done to (for verify_failed, fingerprint_enrolled, user_deleted, fingerprint_deleted, password_deleted, card_deleted). Absent when it was not done to a user."
},
"vendor": {
"description": "What the device said in its own terms, under one key naming the vendor or package (\"zk\", \"brightlink\"). Not part of this contract: see the package's documentation. Absent when the package adds nothing.",
"type": "object",
"minProperties": 1,
"maxProperties": 1,
"additionalProperties": {
"type": "object"
}
}
},
"required": [
"local_time"
],
"examples": [
{
"local_time": "2026-10-01 08:00:00",
"kind": "user_deleted",
"actor_id": "0",
"subject_id": "1001",
"vendor": {
"zk": {
"code": 9,
"objects": [
"1001",
"0",
"0",
"0"
]
}
}
}
]
}