Receive Spammed invocations Once Turning on the Log Stream Webhook

Problem Statement:

When trying to replace a webhook from Rules into the Log Stream webhook, I noticed my endpoint was spammed with hundreds of invocations within seconds even when there was no traffic to the site. It’s trying to send through every log currently in its history. Is this the expected behavior? How to send logs for new events only?

Solution:

You are correct that the log stream would try to send past events since creation. When creating a log stream, the “Starting Cursor” checkbox is where you can input a date/time. This feature will let you specify a recent time to stop the old logs.




Please note that this option is available only when creating a new log stream, not in an existing one and it’s not possible to change it after it’s created. Please delete the existing one and create a new log stream.

References: