{
  "_meta": {
    "documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-base.html",
    "ecs_version": "1.12.2"
  },
  "template": {
    "mappings": {
      "properties": {
        "gcp": {
          "properties": {
            "audit": {
              "properties": {
                "authentication_info": {
                  "properties": {
                    "authority_selector": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "principal_email": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                },
                "method_name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "num_response_items": {
                  "type": "long"
                },
                "request": {
                  "properties": {
                    "filter": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "proto_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "resource_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                },
                "request_metadata": {
                  "properties": {
                    "caller_ip": {
                      "type": "ip"
                    },
                    "caller_supplied_user_agent": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                },
                "resource_location": {
                  "properties": {
                    "current_locations": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                },
                "resource_name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "response": {
                  "properties": {
                    "details": {
                      "properties": {
                        "group": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "kind": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "name": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "uid": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        }
                      }
                    },
                    "proto_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "status": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                },
                "service_name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "status": {
                  "properties": {
                    "code": {
                      "type": "long"
                    },
                    "message": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                },
                "type": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            },
            "destination": {
              "properties": {
                "instance": {
                  "properties": {
                    "project_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "region": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "zone": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                },
                "vpc": {
                  "properties": {
                    "project_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "subnetwork_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "vpc_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                }
              }
            },
            "firewall": {
              "properties": {
                "rule_details": {
                  "properties": {
                    "action": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "destination_range": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "direction": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "priority": {
                      "type": "long"
                    },
                    "reference": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "source_range": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "source_service_account": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "source_tag": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "target_service_account": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "target_tag": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                }
              }
            },
            "source": {
              "properties": {
                "instance": {
                  "properties": {
                    "project_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "region": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "zone": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                },
                "vpc": {
                  "properties": {
                    "project_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "subnetwork_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "vpc_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                }
              }
            },
            "vpcflow": {
              "properties": {
                "reporter": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "rtt": {
                  "properties": {
                    "ms": {
                      "type": "long"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}