# Creating an Elasticsearch Alert Email Connector containing "winlog.event\_data.TargetUserName"?

**URL:** <https://discuss.elastic.co/t/creating-an-elasticsearch-alert-email-connector-containing-winlog-event-data-targetusername/338222>\
**Category:** Metrics\
**Tags:** elastic-stack-alerting\
**Created:** [July 12, 2023, 1:03pm UTC](https://discuss.elastic.co/t/creating-an-elasticsearch-alert-email-connector-containing-winlog-event-data-targetusername/338222 "2023-07-12T13:03:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emorta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emorta/32/123256_2.png) [@Emorta](https://discuss.elastic.co/u/Emorta)\
**Post date:** [July 12, 2023, 1:03pm UTC](https://discuss.elastic.co/t/creating-an-elasticsearch-alert-email-connector-containing-winlog-event-data-targetusername/338222/1 "2023-07-12T13:03:09Z")

</div>

Hello Elastic Community,  
I Created a Alert type "_Elasticsearch query_" that looks for a specifc winlog.event\_id:"XXXX"  
and triggers when threshold it is above "x" value. There is a Email connector all this works perfectly.

**the issue:**  
the Message for the Email contains:

```auto
Alert Details:
---------------------
Event Type: {{fields.winlog.event_data.EventID}}
Target User: - {{fields.winlog.event_data.TargetUserName}}
Event Time: {{fields["@timestamp"]}}
Source IP: {{fields.winlog.event_data.SourceIP}}

```

Despite the successful triggering of the alert, the message content does not display the expected data. Instead, the placeholders remain empty.

Where im i Going wrong ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 9, 2023, 1:04pm UTC](https://discuss.elastic.co/t/creating-an-elasticsearch-alert-email-connector-containing-winlog-event-data-targetusername/338222/2 "2023-08-09T13:04:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
