# Accessing a field with white space

**URL:** <https://discuss.elastic.co/t/accessing-a-field-with-white-space/110134>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 4, 2017, 12:04pm UTC](https://discuss.elastic.co/t/accessing-a-field-with-white-space/110134 "2017-12-04T12:04:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dcam/32/51518_2.png) [@dcam](https://discuss.elastic.co/u/dcam)\
**Post date:** [December 4, 2017, 12:04pm UTC](https://discuss.elastic.co/t/accessing-a-field-with-white-space/110134/1 "2017-12-04T12:04:27Z")

</div>

In order to show the field prettier, I created with white space character: 'Error Message'

I am not able to get it from watcher with mustache.

```
{{error.hits.hits.0._source.'Error Message'}}

{{error.hits.hits.0.fields.'Error Message.keyword'}}
```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 4, 2017, 4:48pm UTC](https://discuss.elastic.co/t/accessing-a-field-with-white-space/110134/2 "2017-12-04T16:48:07Z")

</div>

hey,

have you tried `{{error.hits.hits.0._source.Error Message}}`?

--Alex

---

<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:** [January 1, 2018, 4:48pm UTC](https://discuss.elastic.co/t/accessing-a-field-with-white-space/110134/3 "2018-01-01T16:48:19Z")

</div>

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