# How to get detailed :error message from mutate filter?

**URL:** <https://discuss.elastic.co/t/how-to-get-detailed-error-message-from-mutate-filter/232333>\
**Category:** Logstash\
**Created:** [May 12, 2020, 11:22pm UTC](https://discuss.elastic.co/t/how-to-get-detailed-error-message-from-mutate-filter/232333 "2020-05-12T23:22:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 12, 2020, 11:22pm UTC](https://discuss.elastic.co/t/how-to-get-detailed-error-message-from-mutate-filter/232333/1 "2020-05-12T23:22:07Z")

</div>

Detailed error messages from mutate are not logged anywhere. When the mutate filter raises a logstash.agent.configuration.invalid\_plugin\_register exception it includes in the raise a detailed exception such as

```auto
"Invalid conversion type '#{type}', expected one of '#{valid_conversions.join(',')}'"

```

or

```auto
"Invalid gsub configuration #{[field, needle, replacement]}. gsub requires 3 non-nil elements per config entry"

```

But these never show up in the log file. Can the user configure the logging to make these appear?

---

<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:** [June 9, 2020, 11:36pm UTC](https://discuss.elastic.co/t/how-to-get-detailed-error-message-from-mutate-filter/232333/2 "2020-06-09T23:36:06Z")

</div>

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