# Error when setting up data streams

**URL:** <https://discuss.elastic.co/t/error-when-setting-up-data-streams/313420>\
**Category:** Elasticsearch\
**Tags:** datastreams\
**Created:** [September 1, 2022, 8:17am UTC](https://discuss.elastic.co/t/error-when-setting-up-data-streams/313420 "2022-09-01T08:17:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon90868141](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon90868141](https://discuss.elastic.co/u/anon90868141)\
**Post date:** [September 1, 2022, 8:17am UTC](https://discuss.elastic.co/t/error-when-setting-up-data-streams/313420/1 "2022-09-01T08:17:41Z")

</div>

Hello,

currently, we're using daily indices for logging events and I want to change that to data streams. I followed the steps out of the elasticsearch engineer course and also from the site "Set up a data stream".  
When trying to create one, I receive the following error:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_state_exception",
        "reason" : "[_data_stream_timestamp] meta field has been disabled"
      }
    ],
    "type" : "illegal_state_exception",
    "reason" : "[_data_stream_timestamp] meta field has been disabled"
  },
  "status" : 500
}

```

Sadly, google couldn't help me. Is there any way to fix this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![anon90868141](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon90868141](https://discuss.elastic.co/u/anon90868141)\
**Post date:** [September 6, 2022, 5:19am UTC](https://discuss.elastic.co/t/error-when-setting-up-data-streams/313420/2 "2022-09-06T05:19:52Z")

</div>

Any ideas?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 6, 2022, 5:21am UTC](https://discuss.elastic.co/t/error-when-setting-up-data-streams/313420/3 "2022-09-06T05:21:31Z")

</div>

Can you share the request you are making please.

---

<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:** [October 4, 2022, 5:22am UTC](https://discuss.elastic.co/t/error-when-setting-up-data-streams/313420/4 "2022-10-04T05:22:10Z")

</div>

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