Writing to the execution log in Yandex Cloud Postbox
Written by
Updated at September 23, 2024
Note
Logging is not free of charge. For more information, see the Yandex Cloud Logging documentation.
You can set up logging when or after creating an address. To configure logging for an existing address:
Management console
- In the management console
, select the folder containing the address. - In the list of services, select Cloud Postbox.
- Select the address for which you want to configure logging.
- Under Logging, click
and select Edit. - In the Destination field, select:
Not specified
: To disable logging.Folder
: To write logs to the default log group for the folder where the address is located.Log group
: To write logs to a custom log group. In the Log group field, select the log group to write the logs to. If you do not have a log group, create one.
- Optionally, to write logs for the emails switching from one status to another, enable Mail statuses.
- Click Save.
By default, Yandex Cloud Postbox only writes logs for address verification. When Mail statuses is on, Yandex Cloud Postbox will write logs on the email being processed and delivered to the email client, as well as when it was not delivered to the recipient.
To search for certain entries in the log group, you can use the filter expression language. For example, to find all entries on sending messages to the recipient's email client with errors, use this expression:
message = "Message bounced" and json_payload.message.to: "example@yandex.ru"