---
title: "log heads of a group · RUAL Documentation"
description: "Every key's head sequence in a group, in one read: the latest event of each order of a shop, the latest message of each channel of a server."
canonical: https://docs.rual.nl/block-types/data/log_heads
language: en
---

# log heads of a group

This block is part of the [`data`](https://docs.rual.nl/block-types/data) group and was last modified in core [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

Every key's head sequence in a group, in one read: the latest event of each order of a shop, the latest message of each channel of a server.

- storage `value` required the storage the log's entries are documents of; it names the log

- group `value` required the group the keys were appended with

- heads `object`

- error `value`

heads maps key -> created sequence of its newest entry, for the keys appended with that group. Wire it into cursor_lag to learn which keys a member has not caught up on. A sequence is a millisecond stamp from the key's own clock, max(now ms, the key's last + 1), so it is strictly increasing per key in commit order and compares with a cursor (cursor_set, cursor_lag).

## Version history

Introduced in [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

- [`v15.0.2`](https://docs.rual.nl/core-versions/150002): block added in this release.

- [Back to `data`](https://docs.rual.nl/block-types/data): Return to the main group to view all sub-groups

- [Back to `ordered log`](https://docs.rual.nl/block-types/data?group=ordered%20log): Return to the group to view all blocks within this group
