version: ${xpack.oteldata.template.version}
_meta:
  description: |
    Default mappings that can be changed by users for
    the OpenTelemetry metrics index template installed by x-pack
  managed: true
template:
  mappings:
    dynamic_templates:
      - ecs_ip:
          mapping:
            type: ip
          path_match: [ "ip", "*.ip", "*_ip" ]
          match_mapping_type: string
      - all_strings_to_keywords:
          mapping:
            ignore_above: 1024
            type: keyword
          match_mapping_type: string
