Handling discarded events in Server Integration using Webhooks in Couchbase

When an event is not added to the event queue, but is discarded instead, What is the way to access discarded event, log it in file and process it? How can we access the response to a POST operation after an event gets processed and log same in file?