Limit dynamic field mapping

Hi all!
Please clarify me, how to setup dynamic field mapping only for top levels?
Now i have this teamplate:

     {
      "template": "dash-*",
      "index_patterns": ["dash-*"],
      "settings": {
        "index": {
          "mapping.depth.limit": "30",
          "mapping.total_fields.limit": "10000",
          "number_of_shards": "6",
          "number_of_replicas": "1",
          "refresh_interval": "5s"
        }
      },
      "mappings": {
        "doc": {
          "_meta": {
            "version": "1055"
          },
          "dynamic": "true",
          "dynamic_templates": [
            {
              "deep_objects": {
                "path_match": "*",
                "mapping": {
                  "enabled": "false",
                  "dynamic": "false"
                },
                "path_match": "Response.*",
                "mapping": {
                  "enabled": "false",
                  "dynamic": "false"
                }
              }
            }
          ]
        }
      }
    }

and i see in kibana/management/index patterns

but in discover i see

what i need fix for view in kibana only top level fileds and dont write custom filed mapping? or the easiest - write simple custom mapping for top level fileds & off dynamic? It is predicted that the set of fields can change and this is undesirable.

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