Logstash error of strict dynamic mapping exception

Im using logstash 6.7 and when trying to create an index i receive the following error in the logs;

'strict_dynamic_mapping_exception'. mapping set to strict, dynamic introduction of [dof] within [doc] is not allowed"

my elasticsearch output is

output {      
  elasticsearch {
    hosts => ["http://localhost:9200"]
    index => "eventlogs-%{+xxxx.ww}"  
    
  }

how do i set the mapping to dynamic through log stash as it will be creating new indexes on weekly basis? It was working a couple of days ago without receiving the mapping error. Thanks

The default value for mapping is true, not strict, so you must have an index template in elasticsearch that sets it to strict. You will need to modify that template.

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