Change default Logstash Document Type


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?


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.