# Using "message" in custom alert rule

**URL:** <https://discuss.elastic.co/t/using-message-in-custom-alert-rule/275899>\
**Category:** SIEM\
**Created:** [June 14, 2021, 8:16pm UTC](https://discuss.elastic.co/t/using-message-in-custom-alert-rule/275899 "2021-06-14T20:16:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvanGertis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evangertis/32/85191_2.png) [@EvanGertis](https://discuss.elastic.co/u/EvanGertis)\
**Post date:** [June 14, 2021, 8:16pm UTC](https://discuss.elastic.co/t/using-message-in-custom-alert-rule/275899/1 "2021-06-14T20:16:39Z")

</div>

I would like to create an alert that follows:

"message: some search string"

When I create the alert and save it. I receive the following error

"Bulk Indexing of signals failed: object mapping for [source] tried to parse field [source] as object, but found a concrete value,object mapping for [host]"

---

<div class="post-metadata">

**Author:** ![pcosic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pcosic/32/90827_2.png) [@pcosic](https://discuss.elastic.co/u/pcosic)\
**Post date:** [June 25, 2021, 10:21am UTC](https://discuss.elastic.co/t/using-message-in-custom-alert-rule/275899/2 "2021-06-25T10:21:30Z")

</div>

Looks like, you index fields are not properly mapped. On what data is the alert trying to query?

---

<div class="post-metadata">

**Author:** ![EvanGertis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evangertis/32/85191_2.png) [@EvanGertis](https://discuss.elastic.co/u/EvanGertis)\
**Post date:** [June 25, 2021, 12:51pm UTC](https://discuss.elastic.co/t/using-message-in-custom-alert-rule/275899/3 "2021-06-25T12:51:31Z")

</div>

@pcosic that is correct. I updated the version of filebeat. If anyone else runs into this issue they should note [Breaking changes in 7.0 | Beats Platform Reference [7.13] | Elastic](https://www.elastic.co/guide/en/beats/libbeat/current/breaking-changes-7.0.html).

---

<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:** [July 23, 2021, 12:52pm UTC](https://discuss.elastic.co/t/using-message-in-custom-alert-rule/275899/4 "2021-07-23T12:52:19Z")

</div>

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