# Events not indexed although dynamic set to false (and not strict)

**URL:** https://discuss.elastic.co/t/events-not-indexed-although-dynamic-set-to-false-and-not-strict/168349
**Category:** Elasticsearch
**Created:** [February 14, 2019, 7:27am UTC](https://discuss.elastic.co/t/events-not-indexed-although-dynamic-set-to-false-and-not-strict/168349 "2019-02-14T07:27:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pkaramol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkaramol/32/22610_2.png) [@pkaramol](https://discuss.elastic.co/u/pkaramol)
#### Post date: [February 14, 2019, 7:27am UTC](https://discuss.elastic.co/t/events-not-indexed-although-dynamic-set-to-false-and-not-strict/168349/1 "2019-02-14T07:27:03Z")

</div>

I had initially set my `dynamic` field of my template to `strict`.  
For some reason (perhaps some events out of the ones defined in the template got away) all events got `400`, so I decided to change my `dynamic` field to `false`.

```
  "mappings": {
    "_doc": {
      "dynamic": "false",
      "properties": {
        "_time": {"type":"date"},
...

```

However, although I deleted the daily index, I get the rejections again:

`[2019-02-14T09:23:23,484][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"epaloalto_raw_data-2019.02.14", :_type=>"_doc", :_routing=>nil}, #<LogStash::Event:0x1e5d6507>], :response=>{"index"=>{"_index"=>"paloalto_raw_data-2019.02.14", "_type"=>"_doc", "_id"=>"537j6mgBNHkpa2Kwe8fX", "status"=>400, "error"=>{"type"=>"strict_dynamic_mapping_exception", "reason"=>"mapping set to strict, dynamic introduction of [type] within [_doc] is not allowed"}}}}`

---

<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: [March 14, 2019, 7:27am UTC](https://discuss.elastic.co/t/events-not-indexed-although-dynamic-set-to-false-and-not-strict/168349/2 "2019-03-14T07:27:05Z")

</div>

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