{
  "_meta": {
    "documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-network.html",
    "ecs_version": "1.12.2"
  },
  "template": {
    "mappings": {
      "properties": {
        "network": {
          "properties": {
            "application": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "bytes": {
              "type": "long"
            },
            "community_id": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "direction": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "forwarded_ip": {
              "type": "ip"
            },
            "iana_number": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "inner": {
              "properties": {
                "vlan": {
                  "properties": {
                    "id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                }
              },
              "type": "object"
            },
            "name": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "packets": {
              "type": "long"
            },
            "protocol": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "transport": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "type": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "vlan": {
              "properties": {
                "id": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            },
            "wireless": {
              "properties": {
                "associated_clients": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "bssid": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "channel": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "channel_utilization": {
                  "type": "float"
                },
                "frequency": {
                  "type": "double"
                },
                "ssid": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "ssid_cloaked": {
                  "type": "integer"
                },
                "known_connected_bssid": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "last_connected_bssid": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            }
          }
        }
      }
    }
  }
}