Title:
Alert Rule Triggered but No Data in Webhook Payload or Email Notification
Hi Elastic team,
I'm currently working with Kibana 9.0.3 in Elastic Cloud and running into a problem where my alerting rule seems to detect events properly, but no meaningful data is being sent to the configured Webhook or Email connectors.
Setup Details:
Elasticsearch version: 9.0.3 (Elastic Cloud)
Kibana Rule Type: Elasticsearch Query
Query:
eventid: "cowrie.login.failed"
The query matches documents correctly in Discover — verified by searching and seeing real login failure events, including fields like src_ip, username, message, etc.
What Works:
I have created a Webhook connector pointing to Webhook.site, which works with test payloads.
Test payloads like:
{
"debug": "TEST1"
}
successfully appear in the Webhook logs.
Email notifications also work using the test button.
What Doesn’t Work:
When the alert rule runs and triggers based on the simulated attack:
The Webhook payload contains only {"debug": ""} or an empty string, even though matching events exist.
The same happens with email templates using {{context.results}} — they come through blank or empty.
Even using {{{JSON.stringify context}}} shows {} as the output.
Webhook Body (Action):
{
"debug": "{{{JSON.stringify context.results}}}"
}
Also tried:
{
"debug": "{{{JSON.stringify context}}}"
}
Still results in an empty payload.
Alert Rule Settings:
Rule Type: Elasticsearch query
Schedule: Every 1 minute
Alert after: 1 consecutive match
Flapping detection: ON
The rule is enabled and running
The Preview Results button shows hits successfully
Observations:
The documents clearly match the query — and contain the data I want (e.g. src_ip, username, etc.)
But context.results appears to be empty or inaccessible when the rule triggers the action.
Test actions (manual) work fine. It’s the real execution that fails to populate data.
What I Need Help With:
Why is context.results empty when the rule is triggered, even though hits are detected?
Is there something wrong with how I'm referencing context in the Webhook body?
Are there known limitations or bugs in Kibana 9.0.3 affecting context.results for Elasticsearch Query rules?
Any insight or pointers are much appreciated