# Opensearch issue: While retrieving data for this widget, the following error(s) occurred: Elasticsearch exception \[type=illegal\_argument\_exception, reason=key \[types\] is not supported in the metadata section\]

**URL:** <https://community.graylog.org/t/opensearch-issue-while-retrieving-data-for-this-widget-the-following-error-s-occurred-elasticsearch-exception-type-illegal-argument-exception-reason-key-types-is-not-supported-in-the-metadata-section/33821>\
**Category:** Graylog Central (peer support)\
**Created:** [October 10, 2024, 3:19pm UTC](https://community.graylog.org/t/opensearch-issue-while-retrieving-data-for-this-widget-the-following-error-s-occurred-elasticsearch-exception-type-illegal-argument-exception-reason-key-types-is-not-supported-in-the-metadata-section/33821 "2024-10-10T15:19:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elentescaro](https://avatars.discourse-cdn.com/v4/letter/e/ed8c4c/32.png) [@elentescaro](https://community.graylog.org/u/elentescaro)\
**Post date:** [October 10, 2024, 3:19pm UTC](https://community.graylog.org/t/opensearch-issue-while-retrieving-data-for-this-widget-the-following-error-s-occurred-elasticsearch-exception-type-illegal-argument-exception-reason-key-types-is-not-supported-in-the-metadata-section/33821/1 "2024-10-10T15:19:50Z")

</div>

I use wazuh-indexer with opensearch to connect to my graylog, but I have this error message

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [October 11, 2024, 3:43am UTC](https://community.graylog.org/t/opensearch-issue-while-retrieving-data-for-this-widget-the-following-error-s-occurred-elasticsearch-exception-type-illegal-argument-exception-reason-key-types-is-not-supported-in-the-metadata-section/33821/2 "2024-10-11T03:43:04Z")

</div>

Hey @elentescaro

It might be the field data is not supported in that widget.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [October 25, 2024, 3:43am UTC](https://community.graylog.org/t/opensearch-issue-while-retrieving-data-for-this-widget-the-following-error-s-occurred-elasticsearch-exception-type-illegal-argument-exception-reason-key-types-is-not-supported-in-the-metadata-section/33821/3 "2024-10-25T03:43:13Z")

</div>

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