Filter by timestamp or offset
Understand using Kafka topics by timestamp or offset in Lenses SQL Snapshot concepts engine for Apache Kafka
View the most recent messages
Filter by timestamp
SELECT * FROM mytopic WHERE _meta.timestamp > now() - "5m" LIMIT 100;Filter by offset
SELECT * FROM mytopic WHERE _meta.offset >= LAST_OFFSET() - 10 LIMIT 100;Slice from the past
Filter by timestamp
SELECT *
FROM position_reports
WHERE
_meta.timestamp > "2020-04-01" AND
_meta.timestamp < "2020-04-02";Filter by Offset
Last updated
Was this helpful?

