Log messages from Pub Sub by age

Recipe Tools

What it does

When a new message arrives in the test Event topic, this automation checks if the age is greater than 20. Messages that match are logged to the Job report for review and tracking.

Who it's for

Operations teams who need to filter and track messages based on age criteria.

How teams use this

Track messages by age threshold

Filter incoming messages where age exceeds 20 and log them to a report. This helps identify older messages that need attention without manual review.

Monitor event topic activity

Use the Job report to see which messages from the test Event topic meet the age criteria. This creates a searchable record of filtered events over time.

Adjust the age condition

Change the age threshold from 20 to a different number, or add extra conditions to filter by other message properties. Only the condition logic needs to change.

How it works

  1. Listen for new messages. A new message arrives in the test Event topic in real-time, and this automation evaluates it immediately.
  2. Log matching messages. When the age is greater than 20, Pub Sub logs the message to the Job report for review and tracking.