{
  "_meta": {
    "documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-base.html",
    "ecs_version": "1.12.2"
  },
  "template": {
    "mappings": {
      "properties": {
        "azure": {
          "properties": {
            "activitylogs": {
              "properties": {
                "category": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "event_category": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "identity": {
                  "properties": {
                    "authorization": {
                      "properties": {
                        "action": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "evidence": {
                          "properties": {
                            "principal_id": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "principal_type": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "role": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "role_assignment_id": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "role_assignment_scope": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "role_definition_id": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            }
                          }
                        },
                        "scope": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        }
                      }
                    },
                    "claims": {
                      "properties": {
                        "*": {
                          "type": "object"
                        }
                      }
                    },
                    "claims_initiated_by_user": {
                      "properties": {
                        "fullname": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "givenname": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "name": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "schema": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "surname": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        }
                      }
                    }
                  }
                },
                "operation_name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "properties": {
                  "type": "flattened"
                },
                "result_signature": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "result_type": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            },
            "auditlogs": {
              "properties": {
                "category": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "identity": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "operation_name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "operation_version": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "properties": {
                  "properties": {
                    "activity_datetime": {
                      "type": "date"
                    },
                    "activity_display_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "category": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "correlation_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "initiated_by": {
                      "properties": {
                        "app": {
                          "properties": {
                            "appId": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "displayName": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "servicePrincipalId": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "servicePrincipalName": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            }
                          }
                        },
                        "user": {
                          "properties": {
                            "displayName": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "id": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "ipAddress": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "userPrincipalName": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            }
                          }
                        }
                      }
                    },
                    "logged_by_service": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "operation_type": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "result": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "result_reason": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "target_resources": {
                      "properties": {
                        "*": {
                          "properties": {
                            "display_name": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "id": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "ip_address": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "modified_properties": {
                              "properties": {
                                "*": {
                                  "properties": {
                                    "display_name": {
                                      "ignore_above": 1024,
                                      "type": "keyword"
                                    },
                                    "new_value": {
                                      "ignore_above": 1024,
                                      "type": "keyword"
                                    },
                                    "old_value": {
                                      "ignore_above": 1024,
                                      "type": "keyword"
                                    }
                                  }
                                }
                              }
                            },
                            "type": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            },
                            "user_principal_name": {
                              "ignore_above": 1024,
                              "type": "keyword"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "result_signature": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "tenant_id": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            },
            "consumer_group": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "correlation_id": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "enqueued_time": {
              "type": "date"
            },
            "eventhub": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "offset": {
              "type": "long"
            },
            "partition_id": {
              "type": "long"
            },
            "platformlogs": {
              "properties": {
                "ActivityId": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "Caller": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "Cloud": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "Environment": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "EventTimeString": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "ScaleUnit": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "category": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "ccpNamespace": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "event_category": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "operation_name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "properties": {
                  "type": "flattened"
                },
                "result_signature": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "result_type": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "status": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            },
            "resource": {
              "properties": {
                "authorization_rule": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "group": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "id": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "namespace": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "provider": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            },
            "sequence_number": {
              "type": "long"
            },
            "signinlogs": {
              "properties": {
                "category": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "identity": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "operation_name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "operation_version": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "properties": {
                  "properties": {
                    "app_display_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "app_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "authentication_processing_details": {
                      "type": "flattened"
                    },
                    "authentication_requirement": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "authentication_requirement_policies": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "autonomous_system_number": {
                      "type": "long"
                    },
                    "client_app_used": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "conditional_access_status": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "correlation_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "created_at": {
                      "type": "date"
                    },
                    "cross_tenant_access_type": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "device_detail": {
                      "properties": {
                        "browser": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "device_id": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "display_name": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "operating_system": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        },
                        "trust_type": {
                          "ignore_above": 1024,
                          "type": "keyword"
                        }
                      }
                    },
                    "flagged_for_review": {
                      "type": "boolean"
                    },
                    "home_tenant_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "is_interactive": {
                      "type": "boolean"
                    },
                    "is_tenant_restricted": {
                      "type": "boolean"
                    },
                    "original_request_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "processing_time_ms": {
                      "type": "float"
                    },
                    "resource_display_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "resource_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "resource_tenant_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "risk_detail": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "risk_event_types": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "risk_event_types_v2": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "risk_level_aggregated": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "risk_level_during_signin": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "risk_state": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "service_principal_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "service_principal_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "sso_extension_version": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "status": {
                      "properties": {
                        "error_code": {
                          "type": "long"
                        }
                      }
                    },
                    "token_issuer_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "token_issuer_type": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "user_display_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "user_id": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "user_principal_name": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "user_type": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                },
                "result_description": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "result_signature": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "result_type": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "tenant_id": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            },
            "subscription_id": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "tenant_id": {
              "ignore_above": 1024,
              "type": "keyword"
            }
          }
        }
      }
    }
  }
}