---
title: "log entries before · RUAL Documentation"
description: "Entries of a key created before a sequence, oldest first: paging back through an order's history or a channel's messages. See its pins and version history."
canonical: https://docs.rual.nl/block-types/data/log_before
language: en
---

# log entries before

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).

Entries of a key created before a sequence, oldest first: paging back through an order's history or a channel's messages.

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

- key `value` required the log within the storage: an order, an account, a channel

- seq `number` required the created sequence to page back from (exclusive)

- limit `number` 50 by default

- key field `value` the field that holds the key; log_key by default

Default `log_key`

- id field `value` the field that holds the entry's id; id by default

Default `id`

- created field `value` the field that holds the created sequence; created_seq by default

Default `created_seq`

- changed field `value` the field that holds the changed sequence; changed_seq by default

Default `changed_seq`

- entries `array`

- error `value`

From the cache while it reaches, then from the storage (created field < seq, newest first, then put oldest first). Pass the created sequence of the oldest entry already shown. limit is 50 by default. 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
