# Mapping conflit with no data

**URL:** <https://discuss.elastic.co/t/mapping-conflit-with-no-data/161701>\
**Category:** Elasticsearch\
**Created:** [December 20, 2018, 1:03pm UTC](https://discuss.elastic.co/t/mapping-conflit-with-no-data/161701 "2018-12-20T13:03:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akaren](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Akaren](https://discuss.elastic.co/u/Akaren)\
**Post date:** [December 20, 2018, 1:03pm UTC](https://discuss.elastic.co/t/mapping-conflit-with-no-data/161701/1 "2018-12-20T13:03:20Z")

</div>

We are having ELK 6.1.1, we don't have any indices but we still have error for mapping conflit when new event come. Any idea why?

```
[2018-12-20T11:48:41,891][WARN][logstash.outputs.elasticsearch] Could not index event to 
Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-2018.12.20", 
:_type=>"sbc_event", :_routing=>nil}, 2018-12-20T10:48:41.000Z %{host} %{message}], :response=> 
{"index"=>{"_index"=>"logstash-2018.12.20", "_type"=>"sbc_event", "_id"=>"AWfLO1KCYlwgs24PRNeG", 
"status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"[geoip.location] is defined 
as an object in mapping [sbc_event] but this name is already used for a field in other types"}}}}

```

Logstash settings:

```
   elasticsearch {
	template => "/etc/logstash/templates/elasticsearch-logstash-template.json"
	template_name => "logstash"
            document_type => "sbc_event"
            index => "logstash-%{+YYYY.MM.dd}"
	manage_template => true
	template_overwrite => true
     }

```

Mapping (just geoip part):

```
   "geoip": {
        "dynamic": false,
        "type": "object",
        "properties": {
          "ip": {
            "type": "ip"
          },
          "latitude": {
            "type": "float"
          },
          "country_name": {
            "index": true,
            "type": "keyword"
          },
          "country_code2": {
            "index": true,
            "type": "keyword"
          },
          "location": {
            "type": "geo_point"
          },
          "longitude": {
            "type": "float"
          }
        }
      }
```

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [December 21, 2018, 9:44pm UTC](https://discuss.elastic.co/t/mapping-conflit-with-no-data/161701/2 "2018-12-21T21:44:08Z")

</div>

And how does the record look like?

---

<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:** [January 18, 2019, 9:44pm UTC](https://discuss.elastic.co/t/mapping-conflit-with-no-data/161701/3 "2019-01-18T21:44:19Z")

</div>

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