Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,17 @@ Save time by setting up a recurring task that automatically generates reports an
If your role doesn't have the **Manage Scheduled Reporting** feature privilege, you can only send reports to yourself.
::::

{applies_to}`serverless: ga` {applies_to}`stack: ga 9.3`: (Optional) Enter additional details for email notifications:

* **Cc**: Enter one or more email addresses. Recipients will get a copy of the report, be included on all replies, and have view access to all other recipients' addresses.
* **Bcc**: Enter one or more email addresses. Recipients will get a copy of the report, but won't be included on all replies and won't have view access to the other recipients' addresses.
* **Subject**: Keep the default email subject, or enter your own.
* **Message**: Keep the default email message, or enter your own.

::::{note}
In the subject and message, you can use the [Mustache](https://mustache.github.io/mustache.5.html) template syntax (`{{variable name}}`) to dynamically pass values from data sources when the email is generated.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@umbopepato we may need to define the list of variables that users can select for the email subject and message, especially if they're not clearly defined in the UI.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooo good question. @umbopepato can you help with this question? ^

Copy link
Member

@umbopepato umbopepato Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@umbopepato we may need to define the list of variables that users can select for the email subject and message, especially if they're not clearly defined in the UI.

Variables are listed, with descriptions, in the picker just above the subject and message fields. In case we want to list the available vars in the docs as well, here's the data model we use to render the picker.

Does this also apply? https://www.elastic.co/docs/explore-analyze/alerts-cases/alerts/rule-action-variables#enhance-mustache-variables

Good point @bmorelli25! Yes, we're using the same Mustache rendering functions as in actions, so the same lambdas are available.

@nastasha-solomon shall we specify that the message field also supports Markdown? It has implications on how Mustache is compiled, since a dedicated escape strategy is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we specify that the message field also supports Markdown? It has implications on how Mustache is compiled, since a dedicated escape strategy is used.

Yes! Can you share the method of escaping markdown in mustache templates?

::::

6. Click **Schedule exports** to save the schedule.

A message appears, indicating that the schedule is available on the **Reporting** page. From the **Reporting** page, click on the **Schedules** tab to view details for the newly-created schedule.
Expand Down
Loading