# Access event fields for connector action

**URL:** <https://discuss.elastic.co/t/access-event-fields-for-connector-action/365097>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [August 19, 2024, 2:25am UTC](https://discuss.elastic.co/t/access-event-fields-for-connector-action/365097 "2024-08-19T02:25:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gunlomboy](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@gunlomboy](https://discuss.elastic.co/u/gunlomboy)\
**Post date:** [August 19, 2024, 2:25am UTC](https://discuss.elastic.co/t/access-event-fields-for-connector-action/365097/1 "2024-08-19T02:25:50Z")

</div>

Hi,

I am trying to create an alert which utilises the index connector. The connector works fine and writes to the index, however I have been unable to populate any data from the event itself.

What I want is something like:

```auto
{
  "timestamp": <timestamp of the actual event>,
  "message": <the message field from the actual event>
}

```

I have tried using various forms of the mustache format, with ctx.payload etc ... but so far the index fields just say "empty".

Any help would appreciated. Thanks
