# Change default Logstash Document Type

**URL:** <https://discuss.elastic.co/t/change-default-logstash-document-type/48187>\
**Category:** Logstash\
**Created:** [April 22, 2016, 3:51pm UTC](https://discuss.elastic.co/t/change-default-logstash-document-type/48187 "2016-04-22T15:51:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kryten](https://avatars.discourse-cdn.com/v4/letter/k/58956e/32.png) [@Kryten](https://discuss.elastic.co/u/Kryten)\
**Post date:** [April 22, 2016, 3:51pm UTC](https://discuss.elastic.co/t/change-default-logstash-document-type/48187/1 "2016-04-22T15:51:14Z")

</div>

Hi,

Is there any way to change the default Logstash document type from "logs" to something else?

For example:

```
    {
   "myindex-2016.04.21": {
      "aliases": {},
      "mappings": {
         "logs": {
            "properties": {
               "@timestamp": {
                  "type": "date",
                  "format": "dateOptionalTime"

```

Where "logs" appears as the document type. It seems to be "logs" for every index created by Logstash, by default.

There must be some way to change that?

Thanks.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 24, 2016, 5:26pm UTC](https://discuss.elastic.co/t/change-default-logstash-document-type/48187/2 "2016-04-24T17:26:34Z")

</div>

I don't think that's possible, but you could certainly change the `type` option of all your inputs. An input would normally specify the type of the messages it receives anyway.

---

<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 6, 2017, 5:00am UTC](https://discuss.elastic.co/t/change-default-logstash-document-type/48187/3 "2017-07-06T05:00:57Z")

</div>


