# Breaking Changes With Logstash 6.0

**URL:** <https://discuss.elastic.co/t/breaking-changes-with-logstash-6-0/116398>\
**Category:** Logstash\
**Created:** [January 21, 2018, 6:30pm UTC](https://discuss.elastic.co/t/breaking-changes-with-logstash-6-0/116398 "2018-01-21T18:30:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![grantcurell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grantcurell/32/23813_2.png) [@grantcurell](https://discuss.elastic.co/u/grantcurell)\
**Post date:** [January 21, 2018, 6:30pm UTC](https://discuss.elastic.co/t/breaking-changes-with-logstash-6-0/116398/1 "2018-01-21T18:30:36Z")

</div>

I just managed to get my Logstash config working with v6.0... but I don't understand why it's working and when it doesn't.

**Original config (does not work):**

```
elasticsearch {
  hosts => ["rockserver1.lan"]
  index => "bro-%{[@meta][event_type]}-%{+YYYY.MM.dd}"
  document_type => "doc"
  manage_template => false
}

```

Gives:  
`[2018-01-21T18:23:18,031][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"bro-network", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x1cb38cc0>], :response=>{"index"=>{"_index"=>"bro-network", "_type"=>"doc", "_id"=>"eE71GWEBaJkcJV312X_a", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Rejecting mapping update to [bro-network] as the final mapping would have more than 1 type: [doc, network]"}}}}`

**Working Config:**

```
elasticsearch {
  hosts => ["rockserver1.lan"]
  index => "bro"
  document_type => "doc"
  manage_template => false
}

```

Why does removing the dynamic indexing fix the problem and how does that relate to the error message?

---

<div class="post-metadata">

**Author:** ![grantcurell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grantcurell/32/23813_2.png) [@grantcurell](https://discuss.elastic.co/u/grantcurell)\
**Post date:** [January 21, 2018, 7:04pm UTC](https://discuss.elastic.co/t/breaking-changes-with-logstash-6-0/116398/2 "2018-01-21T19:04:34Z")

</div>

A buddy helped me out. What was happening was that on my build, there was an elasticsearch template for the data. It was setting the type to network so when I tried to come in and set it to doc, doc was the second type.

Snippit:

```
{
  "index_patterns": "bro-network*",
  "mappings": {
    "network": {
      "properties": {
        "@meta": {
          "properties": {
            "geoip_orig": {
              "properties": {
                "ip": {
                  "type": "ip"
                },
                "location": {
                  "type": "geo_point"
                }

```

Changing network to doc fixed the problem.

---

<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:** [February 18, 2018, 7:05pm UTC](https://discuss.elastic.co/t/breaking-changes-with-logstash-6-0/116398/3 "2018-02-18T19:05:35Z")

</div>

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