diff --git a/packages/azure/_dev/build/build.yml b/packages/azure/_dev/build/build.yml index 47cbed9fed8..2bfcfc223b0 100644 --- a/packages/azure/_dev/build/build.yml +++ b/packages/azure/_dev/build/build.yml @@ -1,3 +1,3 @@ dependencies: ecs: - reference: git@v8.0.0 + reference: "git@v8.11.0" diff --git a/packages/azure/_dev/build/docs/activitylogs.md b/packages/azure/_dev/build/docs/activitylogs.md index 8cfb8103a27..6f426a94da8 100644 --- a/packages/azure/_dev/build/docs/activitylogs.md +++ b/packages/azure/_dev/build/docs/activitylogs.md @@ -64,4 +64,8 @@ The `activitylogs` data stream of the Azure Logs package will collect any activi {{event "activitylogs"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "activitylogs"}} diff --git a/packages/azure/_dev/build/docs/adlogs.md b/packages/azure/_dev/build/docs/adlogs.md index b2eb163deba..a93efa9a8a2 100644 --- a/packages/azure/_dev/build/docs/adlogs.md +++ b/packages/azure/_dev/build/docs/adlogs.md @@ -86,6 +86,10 @@ Retrieves Microsoft Entra ID sign-in logs. The sign-ins report provides informat {{event "signinlogs"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "signinlogs"}} ### Identity Protection logs @@ -94,6 +98,10 @@ Retrieves Microsoft Entra ID Protection logs. The [Microsoft Entra ID Protection {{event "identity_protection"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "identity_protection"}} ### Provisioning logs @@ -109,6 +117,10 @@ The Provisioning Logs contain a lot of details about a inbound/outbound sync act {{event "provisioning"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "provisioning"}} ### Audit logs @@ -117,4 +129,8 @@ Retrieves Microsoft Entra ID audit logs. The audit logs provide traceability thr {{event "auditlogs"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "auditlogs"}} diff --git a/packages/azure/_dev/build/docs/application_gateway.md b/packages/azure/_dev/build/docs/application_gateway.md index b42d04c0eb1..8dc8dfb0bfe 100644 --- a/packages/azure/_dev/build/docs/application_gateway.md +++ b/packages/azure/_dev/build/docs/application_gateway.md @@ -71,4 +71,8 @@ The `application_gateway` data stream of the Azure Logs package will collect any {{event "application_gateway"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "application_gateway"}} diff --git a/packages/azure/_dev/build/docs/eventhub.md b/packages/azure/_dev/build/docs/eventhub.md index ce483838b0f..694c242664b 100644 --- a/packages/azure/_dev/build/docs/eventhub.md +++ b/packages/azure/_dev/build/docs/eventhub.md @@ -68,4 +68,8 @@ The `eventhub` data stream of the Azure Logs package will collect any events tha {{event "eventhub"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "eventhub"}} diff --git a/packages/azure/_dev/build/docs/firewall_logs.md b/packages/azure/_dev/build/docs/firewall_logs.md index 1acc5078802..4212e2f913d 100644 --- a/packages/azure/_dev/build/docs/firewall_logs.md +++ b/packages/azure/_dev/build/docs/firewall_logs.md @@ -72,4 +72,8 @@ The `firewall_logs` data stream of the Azure Logs package will collect any firew {{event "firewall_logs"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "firewall_logs"}} diff --git a/packages/azure/_dev/build/docs/graphactivitylogs.md b/packages/azure/_dev/build/docs/graphactivitylogs.md index 7a93a6faef9..dc6989ad51b 100644 --- a/packages/azure/_dev/build/docs/graphactivitylogs.md +++ b/packages/azure/_dev/build/docs/graphactivitylogs.md @@ -81,4 +81,8 @@ The `graphactivitylogs` data stream of the Azure Logs package will collect Micro {{event "graphactivitylogs"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "graphactivitylogs"}} diff --git a/packages/azure/_dev/build/docs/platformlogs.md b/packages/azure/_dev/build/docs/platformlogs.md index 3c1ff27c05e..ebb6f6fe980 100644 --- a/packages/azure/_dev/build/docs/platformlogs.md +++ b/packages/azure/_dev/build/docs/platformlogs.md @@ -64,4 +64,8 @@ The `platformlogs` dataset of the Azure Logs package will collect any platform e {{event "platformlogs"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "platformlogs"}} diff --git a/packages/azure/_dev/build/docs/springcloudlogs.md b/packages/azure/_dev/build/docs/springcloudlogs.md index 638a20b78d8..dcbc0acebbc 100644 --- a/packages/azure/_dev/build/docs/springcloudlogs.md +++ b/packages/azure/_dev/build/docs/springcloudlogs.md @@ -66,4 +66,8 @@ This is the `springcloudlogs` data stream of the Azure Logs package. It will col {{event "springcloudlogs"}} +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + {{fields "springcloudlogs"}} diff --git a/packages/azure/changelog.yml b/packages/azure/changelog.yml index 37dbcc3a4fa..c7ae9a0a721 100644 --- a/packages/azure/changelog.yml +++ b/packages/azure/changelog.yml @@ -1,3 +1,11 @@ +- version: "1.12.0" + changes: + - description: ECS version updated to 8.11.0. Update the kibana constraint to ^8.13.0. Modified the field definitions to remove ECS fields made redundant by the ecs@mappings component template. + type: enhancement + link: https://github.com/elastic/integrations/pull/10224 + - description: Updated "event.outcome" values from "Succeeded" to "success" and "Failed" to "failure". + type: breaking-change + link: https://github.com/elastic/integrations/pull/10224 - version: "1.11.4" changes: - description: Replace Azure AD with Microsoft Entra ID. diff --git a/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-edgecases.log-expected.json b/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-edgecases.log-expected.json index d1c993dee9c..278caf0e314 100644 --- a/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-edgecases.log-expected.json +++ b/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-edgecases.log-expected.json @@ -25,7 +25,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft.Resourcehealth/healthevent/Updated/action", @@ -261,7 +261,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -518,7 +518,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-identity.log-expected.json b/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-identity.log-expected.json index 390aba08f7d..12b1eae2aff 100644 --- a/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-identity.log-expected.json +++ b/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-identity.log-expected.json @@ -222,7 +222,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-raw.log-expected.json b/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-raw.log-expected.json index 74be175b07b..f36213fa546 100644 --- a/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-raw.log-expected.json +++ b/packages/azure/data_stream/activitylogs/_dev/test/pipeline/test-activitylogs-raw.log-expected.json @@ -57,7 +57,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "MICROSOFT.EVENTHUB/NAMESPACES/AUTHORIZATIONRULES/LISTKEYS/ACTION", diff --git a/packages/azure/data_stream/activitylogs/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/activitylogs/elasticsearch/ingest_pipeline/default.yml index e04eb8c311d..e5e7c52bbdf 100644 --- a/packages/azure/data_stream/activitylogs/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/activitylogs/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for parsing azure activity logs. processors: - set: field: ecs.version - value: '8.0.0' + value: '8.11.0' - rename: field: azure target_field: azure-eventhub diff --git a/packages/azure/data_stream/activitylogs/fields/agent.yml b/packages/azure/data_stream/activitylogs/fields/agent.yml index 85704f4c1d4..4b15225a4d4 100644 --- a/packages/azure/data_stream/activitylogs/fields/agent.yml +++ b/packages/azure/data_stream/activitylogs/fields/agent.yml @@ -1,54 +1,6 @@ -- name: cloud.account.id - external: ecs -- name: cloud.availability_zone - external: ecs -- name: cloud.instance.id - external: ecs -- name: cloud.instance.name - external: ecs -- name: cloud.machine.type - external: ecs -- name: cloud.provider - external: ecs -- name: cloud.region - external: ecs -- name: cloud.project.id - external: ecs - name: cloud.image.id type: keyword description: Image ID for the cloud instance. -- name: container.id - external: ecs -- name: container.image.name - external: ecs -- name: container.labels - external: ecs -- name: container.name - external: ecs -- name: host.architecture - external: ecs -- name: host.domain - external: ecs -- name: host.hostname - external: ecs -- name: host.id - external: ecs -- name: host.mac - external: ecs -- name: host.name - external: ecs -- name: host.os.family - external: ecs -- name: host.os.kernel - external: ecs -- name: host.os.name - external: ecs -- name: host.os.platform - external: ecs -- name: host.os.version - external: ecs -- name: host.type - external: ecs - name: host.containerized type: boolean description: If the host is a container. diff --git a/packages/azure/data_stream/activitylogs/fields/ecs.yml b/packages/azure/data_stream/activitylogs/fields/ecs.yml deleted file mode 100644 index 8451f266e58..00000000000 --- a/packages/azure/data_stream/activitylogs/fields/ecs.yml +++ /dev/null @@ -1,96 +0,0 @@ -- name: client.ip - external: ecs -- name: destination.address - external: ecs -- name: destination.as.number - external: ecs -- name: destination.as.organization.name - external: ecs -- name: destination.geo.city_name - external: ecs -- name: destination.geo.continent_name - external: ecs -- name: destination.geo.country_iso_code - external: ecs -- name: destination.geo.country_name - external: ecs -- name: destination.geo.location - external: ecs -- name: destination.geo.name - external: ecs -- name: destination.geo.region_iso_code - external: ecs -- name: destination.geo.region_name - external: ecs -- name: destination.ip - external: ecs -- name: destination.port - external: ecs -- name: ecs.version - external: ecs -- name: message - external: ecs -- name: event.action - external: ecs -- name: event.category - external: ecs -- name: event.created - external: ecs -- name: event.duration - external: ecs -- name: event.id - external: ecs -- name: event.ingested - external: ecs -- name: event.kind - external: ecs -- name: event.type - external: ecs -- name: file.mime_type - external: ecs -- name: file.size - external: ecs -- name: network.community_id - external: ecs -- name: host.ip - external: ecs -- name: related.ip - external: ecs -- name: related.user - external: ecs -- name: source.address - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: log.level - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs -- name: source.geo.location - external: ecs -- name: source.geo.name - external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.ip - external: ecs -- name: user.full_name - external: ecs -- name: user.domain - external: ecs -- name: user.name - external: ecs -- name: user.id - external: ecs -- name: tags - external: ecs diff --git a/packages/azure/data_stream/activitylogs/sample_event.json b/packages/azure/data_stream/activitylogs/sample_event.json index ff517c09f6a..a114f4271fe 100644 --- a/packages/azure/data_stream/activitylogs/sample_event.json +++ b/packages/azure/data_stream/activitylogs/sample_event.json @@ -1,87 +1,87 @@ { - "log": { - "level": "Information" - }, - "cloud": { - "provider": "azure" - }, "@timestamp": "2020-11-02T08:51:36.997Z", - "ecs": { - "version": "1.5.0" - }, - "data_stream": { - "namespace": "default", - "type": "logs", - "dataset": "azure.activitylogs" - }, - "event": { - "duration": 0, - "ingested": "2020-10-30T20:47:48.123859400Z", - "kind": "event", - "action": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", - "dataset": "azure.activitylogs", - "outcome": "success" - }, "azure": { - "subscription_id": "3f041b6d-fc31-41d8-8ff6-e5f16e6747ff", - "resource": { - "provider": "MICROSOFT.RESOURCES/DEPLOYMENTS", - "name": "NOMARKETPLACE", - "id": "/SUBSCRIPTIONS/3f041b6d-fc31-41d8-8ff6-e5f16e6747ff/RESOURCEGROUPS/OBS-TEST/PROVIDERS/MICROSOFT.RESOURCES/DEPLOYMENTS/NOMARKETPLACE", - "group": "OBS-TEST" - }, - "correlation_id": "876190b4-5b99-4a39-b725-4f5644911cf0", "activitylogs": { - "operation_name": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", - "result_type": "Success", + "category": "Administrative", + "event_category": "Administrative", "identity": { "authorization": { + "action": "Microsoft.Resources/deployments/write", "evidence": { - "role_definition_id": "8e3af657a8ff443ca75c2fe8c4bcb635", + "principal_id": "68b1adf93eb744b08eb8ce96522a08d3", + "principal_type": "User", "role": "Owner", - "role_assignment_scope": "/providers/Microsoft.Management/managementGroups/5341238b-665c-4eb4-b259-b250371ae430", "role_assignment_id": "7f06f09dd6764b44930adbec3f10e92b", - "principal_type": "User", - "principal_id": "68b1adf93eb744b08eb8ce96522a08d3" + "role_assignment_scope": "/providers/Microsoft.Management/managementGroups/5341238b-665c-4eb4-b259-b250371ae430", + "role_definition_id": "8e3af657a8ff443ca75c2fe8c4bcb635" }, - "scope": "/subscriptions/3f041b6d-fc31-41d8-8ff6-e5f16e6747ff/resourceGroups/obs-test/providers/Microsoft.Resources/deployments/NoMarketplace", - "action": "Microsoft.Resources/deployments/write" + "scope": "/subscriptions/3f041b6d-fc31-41d8-8ff6-e5f16e6747ff/resourceGroups/obs-test/providers/Microsoft.Resources/deployments/NoMarketplace" }, "claims": { - "xms_tcdt": "1469565974", "aio": "ATQAy/8RAAAAsL67UQMOHZv3izTDRJfvJN5UyON9ktUszzPj08K8aURsbhxhR0niz9s1Pxm9U1lI", - "iss": "https://sts.windows.net/4fa94b7d-a743-486f-abcc-6c276c44cf4b/", - "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/nameidentifier": "a9L2WR3XZN5ANzAqwLx_4aamU49JG6kqaE5JZkXdeNs", - "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/surname": "Doe", - "http://schemas_microsoft_com/identity/claims/scope": "user_impersonation", - "http://schemas_microsoft_com/identity/claims/tenantid": "4fa94b7d-a743-486f-abcc-6c276c44cf4b", - "puid": "1003200045B17AD4", - "wids": "5d6b6bb7-de71-4623-b4af-96380a352509", - "http://schemas_microsoft_com/claims/authnclassreference": "1", + "appid": "c44b4083-3bb0-49c1-b47d-974e53cbdf3c", + "appidacr": "2", + "aud": "https://management.core.windows.net/", "exp": "1604310019", - "ipaddr": "77.170.179.229", - "iat": "1604306119", - "http://schemas_microsoft_com/identity/claims/objectidentifier": "68b1adf9-3eb7-44b0-8eb8-ce96522a08d3", - "http://schemas_microsoft_com/claims/authnmethodsreferences": "pwd", - "ver": "1.0", "groups": "644c6686-9ef1-4b69-9410-107664a9e1f0,9ed1993c-ce9c-4915-a04d-58c6f5f7ee12", - "uti": "rqr63RW_Kk6ztuomENMQAA", + "http://schemas_microsoft_com/claims/authnclassreference": "1", + "http://schemas_microsoft_com/claims/authnmethodsreferences": "pwd", + "http://schemas_microsoft_com/identity/claims/objectidentifier": "68b1adf9-3eb7-44b0-8eb8-ce96522a08d3", + "http://schemas_microsoft_com/identity/claims/scope": "user_impersonation", + "http://schemas_microsoft_com/identity/claims/tenantid": "4fa94b7d-a743-486f-abcc-6c276c44cf4b", + "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/givenname": "John", + "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/name": "john@gmail.com", + "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/nameidentifier": "a9L2WR3XZN5ANzAqwLx_4aamU49JG6kqaE5JZkXdeNs", + "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/surname": "Doe", "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/upn": "john@gmail.com", - "aud": "https://management.core.windows.net/", + "iat": "1604306119", + "ipaddr": "77.170.179.229", + "iss": "https://sts.windows.net/4fa94b7d-a743-486f-abcc-6c276c44cf4b/", "nbf": "1604306119", - "appidacr": "2", + "puid": "1003200045B17AD4", "rh": "0.AAAAfUupT0Onb0irzGwnbETPS4NAS8SwO8FJtH2XTlPL3zxRAA8.", - "appid": "c44b4083-3bb0-49c1-b47d-974e53cbdf3c", - "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/givenname": "John", - "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/name": "john@gmail.com" + "uti": "rqr63RW_Kk6ztuomENMQAA", + "ver": "1.0", + "wids": "5d6b6bb7-de71-4623-b4af-96380a352509", + "xms_tcdt": "1469565974" }, "claims_initiated_by_user": { "schema": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims" } }, - "category": "Administrative", - "event_category": "Administrative", - "result_signature": "Succeeded." - } + "operation_name": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", + "result_signature": "Succeeded.", + "result_type": "Success" + }, + "correlation_id": "876190b4-5b99-4a39-b725-4f5644911cf0", + "resource": { + "group": "OBS-TEST", + "id": "/SUBSCRIPTIONS/3f041b6d-fc31-41d8-8ff6-e5f16e6747ff/RESOURCEGROUPS/OBS-TEST/PROVIDERS/MICROSOFT.RESOURCES/DEPLOYMENTS/NOMARKETPLACE", + "name": "NOMARKETPLACE", + "provider": "MICROSOFT.RESOURCES/DEPLOYMENTS" + }, + "subscription_id": "3f041b6d-fc31-41d8-8ff6-e5f16e6747ff" + }, + "cloud": { + "provider": "azure" + }, + "data_stream": { + "dataset": "azure.activitylogs", + "namespace": "default", + "type": "logs" + }, + "ecs": { + "version": "8.11.0" + }, + "event": { + "action": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", + "dataset": "azure.activitylogs", + "duration": 0, + "ingested": "2020-10-30T20:47:48.123859400Z", + "kind": "event", + "outcome": "success" + }, + "log": { + "level": "Information" } } \ No newline at end of file diff --git a/packages/azure/data_stream/application_gateway/_dev/test/pipeline/test-application-gateway-raw.log-expected.json b/packages/azure/data_stream/application_gateway/_dev/test/pipeline/test-application-gateway-raw.log-expected.json index 967298965a9..83c967e65f0 100644 --- a/packages/azure/data_stream/application_gateway/_dev/test/pipeline/test-application-gateway-raw.log-expected.json +++ b/packages/azure/data_stream/application_gateway/_dev/test/pipeline/test-application-gateway-raw.log-expected.json @@ -27,7 +27,7 @@ "domain": "www.contoso.com" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "category": [ @@ -120,7 +120,7 @@ "domain": "www.contoso.com" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "category": [ @@ -214,7 +214,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "Matched", @@ -303,7 +303,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "Matched", diff --git a/packages/azure/data_stream/application_gateway/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/application_gateway/elasticsearch/ingest_pipeline/default.yml index f3b8f6085e0..48e7f087aaa 100644 --- a/packages/azure/data_stream/application_gateway/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/application_gateway/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for processing Azure firewall logs. processors: - set: field: ecs.version - value: '8.5.0' + value: '8.11.0' - set: field: event.kind value: event diff --git a/packages/azure/data_stream/application_gateway/fields/ecs.yml b/packages/azure/data_stream/application_gateway/fields/ecs.yml deleted file mode 100644 index b4948cfd66f..00000000000 --- a/packages/azure/data_stream/application_gateway/fields/ecs.yml +++ /dev/null @@ -1,96 +0,0 @@ -- name: cloud.account.id - external: ecs -- name: cloud.provider - external: ecs -- name: destination.address - external: ecs -- name: destination.domain - external: ecs -- name: destination.bytes - external: ecs -- name: ecs.version - external: ecs -- name: http.version - external: ecs -- name: http.request.method - external: ecs -- name: http.response.status_code - external: ecs -- name: network.protocol - external: ecs -- name: network.bytes - external: ecs -- name: observer.product - external: ecs -- name: observer.type - external: ecs -- name: observer.vendor - external: ecs -- name: observer.name - external: ecs -- name: related.hosts - external: ecs -- name: related.ip - external: ecs -- name: source.address - external: ecs -- name: source.ip - external: ecs -- name: source.port - external: ecs -- name: source.bytes - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs -- name: source.geo.location - external: ecs -- name: source.geo.name - external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: tags - external: ecs -- name: message - external: ecs -- name: url.domain - external: ecs -- name: url.query - external: ecs -- name: url.path - external: ecs -- name: url.original - external: ecs -- name: rule.category - external: ecs -- name: rule.description - external: ecs -- name: rule.id - external: ecs -- name: rule.ruleset - external: ecs -- name: rule.version - external: ecs -- name: event.duration - external: ecs -- name: event.original - external: ecs -- name: event.type - external: ecs -- name: event.action - external: ecs -- name: event.kind - external: ecs -- name: event.category - external: ecs diff --git a/packages/azure/data_stream/application_gateway/sample_event.json b/packages/azure/data_stream/application_gateway/sample_event.json index 08f78480f49..e652b62d96b 100644 --- a/packages/azure/data_stream/application_gateway/sample_event.json +++ b/packages/azure/data_stream/application_gateway/sample_event.json @@ -1,17 +1,17 @@ { "@timestamp": "2017-04-26T19:27:38.000Z", "azure": { + "application_gateway": { + "instance_id": "ApplicationGatewayRole_IN_0", + "operation_name": "ApplicationGatewayAccess" + }, "resource": { "group": "PEERINGTEST", "id": "/SUBSCRIPTIONS/23103928-B2CF-472A-8CDB-0146E2849129/RESOURCEGROUPS/PEERINGTEST/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/Application-Gateway-Name", "name": "Application-Gateway-Name", "provider": "MICROSOFT.NETWORK/APPLICATIONGATEWAYS" }, - "subscription_id": "23103928-B2CF-472A-8CDB-0146E2849129", - "application_gateway": { - "instance_id": "ApplicationGatewayRole_IN_0", - "operation_name": "ApplicationGatewayAccess" - } + "subscription_id": "23103928-B2CF-472A-8CDB-0146E2849129" }, "cloud": { "account": { @@ -25,14 +25,14 @@ "domain": "www.contoso.com" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "category": [ "network" ], "kind": "event", - "original": "{\"resourceId\":\"/SUBSCRIPTIONS/23103928-B2CF-472A-8CDB-0146E2849129/RESOURCEGROUPS/PEERINGTEST/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/Application-Gateway-Name\",\"operationName\":\"ApplicationGatewayAccess\",\"timestamp\":\"2017-04-26T19:27:38Z\",\"category\":\"ApplicationGatewayAccessLog\",\"properties\":{\"instanceId\":\"ApplicationGatewayRole_IN_0\",\"clientIP\":\"67.43.156.7\",\"clientPort\":46886,\"httpMethod\":\"GET\",\"requestUri\":\"/phpmyadmin/scripts/setup.php\",\"requestQuery\":\"X-AzureApplicationGateway-CACHE-HIT=0\u0026SERVER-ROUTED=10.4.0.4\u0026X-AzureApplicationGateway-LOG-ID=874f1f0f-6807-41c9-b7bc-f3cfa74aa0b1\u0026SERVER-STATUS=404\",\"userAgent\":\"-\",\"httpStatus\":404,\"httpVersion\":\"HTTP/1.0\",\"receivedBytes\":65,\"sentBytes\":553,\"timeTaken\":205,\"sslEnabled\":\"off\",\"host\":\"www.contoso.com\",\"originalHost\":\"www.contoso.com\"}}", + "original": "{\"resourceId\":\"/SUBSCRIPTIONS/23103928-B2CF-472A-8CDB-0146E2849129/RESOURCEGROUPS/PEERINGTEST/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/Application-Gateway-Name\",\"operationName\":\"ApplicationGatewayAccess\",\"timestamp\":\"2017-04-26T19:27:38Z\",\"category\":\"ApplicationGatewayAccessLog\",\"properties\":{\"instanceId\":\"ApplicationGatewayRole_IN_0\",\"clientIP\":\"67.43.156.7\",\"clientPort\":46886,\"httpMethod\":\"GET\",\"requestUri\":\"/phpmyadmin/scripts/setup.php\",\"requestQuery\":\"X-AzureApplicationGateway-CACHE-HIT=0&SERVER-ROUTED=10.4.0.4&X-AzureApplicationGateway-LOG-ID=874f1f0f-6807-41c9-b7bc-f3cfa74aa0b1&SERVER-STATUS=404\",\"userAgent\":\"-\",\"httpStatus\":404,\"httpVersion\":\"HTTP/1.0\",\"receivedBytes\":65,\"sentBytes\":553,\"timeTaken\":205,\"sslEnabled\":\"off\",\"host\":\"www.contoso.com\",\"originalHost\":\"www.contoso.com\"}}", "type": [ "connection" ] @@ -88,6 +88,6 @@ "url": { "domain": "www.contoso.com", "path": "/phpmyadmin/scripts/setup.php", - "query": "X-AzureApplicationGateway-CACHE-HIT=0\u0026SERVER-ROUTED=10.4.0.4\u0026X-AzureApplicationGateway-LOG-ID=874f1f0f-6807-41c9-b7bc-f3cfa74aa0b1\u0026SERVER-STATUS=404" + "query": "X-AzureApplicationGateway-CACHE-HIT=0&SERVER-ROUTED=10.4.0.4&X-AzureApplicationGateway-LOG-ID=874f1f0f-6807-41c9-b7bc-f3cfa74aa0b1&SERVER-STATUS=404" } } \ No newline at end of file diff --git a/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-audit-logs-edgecases.log-expected.json b/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-audit-logs-edgecases.log-expected.json index 87e2a05a1d5..b0efc5e3c37 100644 --- a/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-audit-logs-edgecases.log-expected.json +++ b/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-audit-logs-edgecases.log-expected.json @@ -64,7 +64,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Update service principal", @@ -155,7 +155,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Update service principal", diff --git a/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-audit-logs-sample.log-expected.json b/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-audit-logs-sample.log-expected.json index 8f5604cb36e..650e2d1c63a 100644 --- a/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-audit-logs-sample.log-expected.json +++ b/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-audit-logs-sample.log-expected.json @@ -73,7 +73,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Add service principal credentials", @@ -168,7 +168,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Update service principal", @@ -259,7 +259,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Update service principal", diff --git a/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-auditlogs-raw.log-expected.json b/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-auditlogs-raw.log-expected.json index 65c3523ac4b..45280fa8d36 100644 --- a/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-auditlogs-raw.log-expected.json +++ b/packages/azure/data_stream/auditlogs/_dev/test/pipeline/test-auditlogs-raw.log-expected.json @@ -53,7 +53,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Update device", @@ -123,7 +123,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Update device", @@ -192,7 +192,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Update device", diff --git a/packages/azure/data_stream/auditlogs/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/auditlogs/elasticsearch/ingest_pipeline/default.yml index 6b518f6021c..6760f6c52ea 100644 --- a/packages/azure/data_stream/auditlogs/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/auditlogs/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for parsing azure activity logs. processors: - set: field: ecs.version - value: '8.0.0' + value: '8.11.0' - rename: field: azure target_field: azure-eventhub diff --git a/packages/azure/data_stream/auditlogs/fields/agent.yml b/packages/azure/data_stream/auditlogs/fields/agent.yml index 85704f4c1d4..4b15225a4d4 100644 --- a/packages/azure/data_stream/auditlogs/fields/agent.yml +++ b/packages/azure/data_stream/auditlogs/fields/agent.yml @@ -1,54 +1,6 @@ -- name: cloud.account.id - external: ecs -- name: cloud.availability_zone - external: ecs -- name: cloud.instance.id - external: ecs -- name: cloud.instance.name - external: ecs -- name: cloud.machine.type - external: ecs -- name: cloud.provider - external: ecs -- name: cloud.region - external: ecs -- name: cloud.project.id - external: ecs - name: cloud.image.id type: keyword description: Image ID for the cloud instance. -- name: container.id - external: ecs -- name: container.image.name - external: ecs -- name: container.labels - external: ecs -- name: container.name - external: ecs -- name: host.architecture - external: ecs -- name: host.domain - external: ecs -- name: host.hostname - external: ecs -- name: host.id - external: ecs -- name: host.mac - external: ecs -- name: host.name - external: ecs -- name: host.os.family - external: ecs -- name: host.os.kernel - external: ecs -- name: host.os.name - external: ecs -- name: host.os.platform - external: ecs -- name: host.os.version - external: ecs -- name: host.type - external: ecs - name: host.containerized type: boolean description: If the host is a container. diff --git a/packages/azure/data_stream/auditlogs/fields/ecs.yml b/packages/azure/data_stream/auditlogs/fields/ecs.yml deleted file mode 100644 index 8451f266e58..00000000000 --- a/packages/azure/data_stream/auditlogs/fields/ecs.yml +++ /dev/null @@ -1,96 +0,0 @@ -- name: client.ip - external: ecs -- name: destination.address - external: ecs -- name: destination.as.number - external: ecs -- name: destination.as.organization.name - external: ecs -- name: destination.geo.city_name - external: ecs -- name: destination.geo.continent_name - external: ecs -- name: destination.geo.country_iso_code - external: ecs -- name: destination.geo.country_name - external: ecs -- name: destination.geo.location - external: ecs -- name: destination.geo.name - external: ecs -- name: destination.geo.region_iso_code - external: ecs -- name: destination.geo.region_name - external: ecs -- name: destination.ip - external: ecs -- name: destination.port - external: ecs -- name: ecs.version - external: ecs -- name: message - external: ecs -- name: event.action - external: ecs -- name: event.category - external: ecs -- name: event.created - external: ecs -- name: event.duration - external: ecs -- name: event.id - external: ecs -- name: event.ingested - external: ecs -- name: event.kind - external: ecs -- name: event.type - external: ecs -- name: file.mime_type - external: ecs -- name: file.size - external: ecs -- name: network.community_id - external: ecs -- name: host.ip - external: ecs -- name: related.ip - external: ecs -- name: related.user - external: ecs -- name: source.address - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: log.level - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs -- name: source.geo.location - external: ecs -- name: source.geo.name - external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.ip - external: ecs -- name: user.full_name - external: ecs -- name: user.domain - external: ecs -- name: user.name - external: ecs -- name: user.id - external: ecs -- name: tags - external: ecs diff --git a/packages/azure/data_stream/auditlogs/sample_event.json b/packages/azure/data_stream/auditlogs/sample_event.json index 8857af23a40..d0bcab4db6b 100644 --- a/packages/azure/data_stream/auditlogs/sample_event.json +++ b/packages/azure/data_stream/auditlogs/sample_event.json @@ -1,31 +1,5 @@ { - "log": { - "level": "Information" - }, - "cloud": { - "provider": "azure" - }, "@timestamp": "2020-11-02T08:51:36.997Z", - "ecs": { - "version": "1.5.0" - }, - "data_stream": { - "namespace": "default", - "type": "logs", - "dataset": "azure.auditlogs" - }, - "event": { - "duration": 0, - "ingested": "2020-10-30T20:47:48.123859400Z", - "kind": "event", - "action": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", - "dataset": "azure.auditlogs", - "outcome": "success" - }, - "azure.correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "azure.resource.id": "/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam", - "azure.resource.provider": "Microsoft.aadiam", - "azure.tenant_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", "azure.auditlogs.category": "AuditLogs", "azure.auditlogs.identity": "Device Registration Service", "azure.auditlogs.operation_name": "Update device", @@ -44,5 +18,31 @@ "azure.auditlogs.properties.target_resources.0.id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", "azure.auditlogs.properties.target_resources.0.modified_properties.0.new_value": "\"\"", "azure.auditlogs.properties.target_resources.0.type": "Device", - "azure.auditlogs.result_signature": "None" + "azure.auditlogs.result_signature": "None", + "azure.correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "azure.resource.id": "/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam", + "azure.resource.provider": "Microsoft.aadiam", + "azure.tenant_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "cloud": { + "provider": "azure" + }, + "data_stream": { + "dataset": "azure.auditlogs", + "namespace": "default", + "type": "logs" + }, + "ecs": { + "version": "8.11.0" + }, + "event": { + "action": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", + "dataset": "azure.auditlogs", + "duration": 0, + "ingested": "2020-10-30T20:47:48.123859400Z", + "kind": "event", + "outcome": "success" + }, + "log": { + "level": "Information" + } } \ No newline at end of file diff --git a/packages/azure/data_stream/eventhub/_dev/test/pipeline/test-eventhub-raw.log-expected.json b/packages/azure/data_stream/eventhub/_dev/test/pipeline/test-eventhub-raw.log-expected.json index 1d7e26b6e88..06c119a9232 100644 --- a/packages/azure/data_stream/eventhub/_dev/test/pipeline/test-eventhub-raw.log-expected.json +++ b/packages/azure/data_stream/eventhub/_dev/test/pipeline/test-eventhub-raw.log-expected.json @@ -2,7 +2,7 @@ "expected": [ { "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "kind": "event" diff --git a/packages/azure/data_stream/eventhub/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/eventhub/elasticsearch/ingest_pipeline/default.yml index dd5ec461337..58f4ef97859 100644 --- a/packages/azure/data_stream/eventhub/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/eventhub/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for parsing azure activity logs. processors: - set: field: ecs.version - value: '8.0.0' + value: '8.11.0' - rename: field: azure target_field: azure-eventhub diff --git a/packages/azure/data_stream/eventhub/fields/agent.yml b/packages/azure/data_stream/eventhub/fields/agent.yml index f78c40ec1b0..0a22a23415e 100644 --- a/packages/azure/data_stream/eventhub/fields/agent.yml +++ b/packages/azure/data_stream/eventhub/fields/agent.yml @@ -1,54 +1,6 @@ -- name: cloud.account.id - external: ecs -- name: cloud.availability_zone - external: ecs -- name: cloud.instance.id - external: ecs -- name: cloud.instance.name - external: ecs -- name: cloud.machine.type - external: ecs -- name: cloud.provider - external: ecs -- name: cloud.region - external: ecs -- name: cloud.project.id - external: ecs - name: cloud.image.id type: keyword description: Image ID for the cloud instance. -- name: container.id - external: ecs -- name: container.image.name - external: ecs -- name: container.labels - external: ecs -- name: container.name - external: ecs -- name: host.architecture - external: ecs -- name: host.domain - external: ecs -- name: host.hostname - external: ecs -- name: host.id - external: ecs -- name: host.mac - external: ecs -- name: host.name - external: ecs -- name: host.os.family - external: ecs -- name: host.os.kernel - external: ecs -- name: host.os.name - external: ecs -- name: host.os.platform - external: ecs -- name: host.os.version - external: ecs -- name: host.type - external: ecs - name: host.containerized type: boolean description: If the host is a container. diff --git a/packages/azure/data_stream/eventhub/fields/ecs.yml b/packages/azure/data_stream/eventhub/fields/ecs.yml deleted file mode 100644 index 08590c49910..00000000000 --- a/packages/azure/data_stream/eventhub/fields/ecs.yml +++ /dev/null @@ -1,98 +0,0 @@ -- name: destination.address - external: ecs -- name: destination.as.number - external: ecs -- name: destination.as.organization.name - external: ecs -- name: destination.geo.city_name - external: ecs -- name: destination.geo.continent_name - external: ecs -- name: destination.geo.country_iso_code - external: ecs -- name: destination.geo.country_name - external: ecs -- name: destination.geo.location - external: ecs -- name: destination.geo.name - external: ecs -- name: destination.geo.region_iso_code - external: ecs -- name: destination.geo.region_name - external: ecs -- name: destination.ip - external: ecs -- name: destination.port - external: ecs -- name: ecs.version - external: ecs -- name: message - external: ecs -- name: event.action - external: ecs -- name: event.category - external: ecs -- name: event.created - external: ecs -- name: event.duration - external: ecs -- name: event.id - external: ecs -- name: event.ingested - external: ecs -- name: event.kind - external: ecs -- name: event.type - external: ecs -- external: ecs - name: event.dataset -- name: file.mime_type - external: ecs -- name: file.size - external: ecs -- name: network.community_id - external: ecs -- name: host.ip - external: ecs -- name: related.ip - external: ecs -- name: related.user - external: ecs -- name: source.address - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: log.level - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs -- name: source.geo.location - external: ecs -- name: source.geo.name - external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.ip - external: ecs -- name: source.port - external: ecs -- name: user.full_name - external: ecs -- name: user.domain - external: ecs -- name: user.name - external: ecs -- name: user.id - external: ecs -- name: tags - external: ecs diff --git a/packages/azure/data_stream/eventhub/sample_event.json b/packages/azure/data_stream/eventhub/sample_event.json index a1c33fd5024..10bf8241da6 100644 --- a/packages/azure/data_stream/eventhub/sample_event.json +++ b/packages/azure/data_stream/eventhub/sample_event.json @@ -1,66 +1,66 @@ { + "@timestamp": "2021-10-18T12:31:17.027Z", "agent": { + "ephemeral_id": "42a183d5-df19-4008-8776-d9765bc01d50", "hostname": "docker-fleet-agent", - "name": "docker-fleet-agent", "id": "b659ebed-5338-45f3-9762-1bcf2c1ad0e1", + "name": "docker-fleet-agent", "type": "filebeat", - "ephemeral_id": "42a183d5-df19-4008-8776-d9765bc01d50", "version": "7.15.0" }, - "elastic_agent": { - "id": "b659ebed-5338-45f3-9762-1bcf2c1ad0e1", - "version": "7.15.0", - "snapshot": true - }, - "message": "{\\\"ReleaseVersion\\\":\\\"6.2021.39.11+d1f0e29.release_2021w39_az\\\",\\\"RoleLocation\\\":\\\"North Europe\\\",\\\"callerIpAddress\\\":\\\"77.170.179.229\\\",\\\"category\\\":\\\"Administrative\\\",\\\"correlationId\\\":\\\"a75a0752-ebbb-42bf-831f-43788a8c1193\\\",\\\"durationMs\\\":\\\"0\\\",\\\"identity\\\":{\\\"authorization\\\":{\\\"action\\\":\\\"Microsoft.ServiceBus\\/namespaces\\/delete\\\",\\\"evidence\\\":{\\\"principalId\\\":\\\"68b1adf93eb744b08eb8ce96522a08d3\\\",\\\"principalType\\\":\\\"User\\\",\\\"role\\\":\\\"Owner\\\",\\\"roleAssignmentId\\\":\\\"7f06f09dd6764b44930adbec3f10e92b\\\",\\\"roleAssignmentScope\\\":\\\"\\/providers\\/Microsoft.Management\\/managementGroups\\/5341238b-665c-4eb4-b259-b250371ae430\\\",\\\"roleDefinitionId\\\":\\\"8e3af657a8ff443ca75c2fe8c4bcb635\\\"},\\\"scope\\\":\\\"\\/subscriptions\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\/resourcegroups\\/obs-test\\/providers\\/Microsoft.ServiceBus\\/namespaces\\/testobs\\\"},\\\"claims\\\":{\\\"aio\\\":\\\"ATQAy\\/8TAAAAgFUjNWoJWKgHlAK2AL92UMeUsb6VD5zck\\/myDZPucX5V3Gc8SDMg5vTV28NUy5N7\\\",\\\"appid\\\":\\\"c44b4083-3bb0-49c1-b47d-974e53cbdf3c\\\",\\\"appidacr\\\":\\\"2\\\",\\\"aud\\\":\\\"https:\\/\\/management.core.windows.net\\/\\\",\\\"exp\\\":\\\"1634290798\\\",\\\"groups\\\":\\\"644c6686-9ef1-4b69-9410-107664a9e1f0,9ed1993c-ce9c-4915-a04d-58c6f5f7ee12,a953f548-26ab-47b2-be7d-65586b7bcc2a\\\",\\\"http:\\/\\/schemas.microsoft.com\\/2012\\/01\\/devicecontext\\/claims\\/identifier\\\":\\\"1060004c-63dc-465b-b868-ec6547176c58\\\",\\\"http:\\/\\/schemas.microsoft.com\\/claims\\/authnclassreference\\\":\\\"1\\\",\\\"http:\\/\\/schemas.microsoft.com\\/claims\\/authnmethodsreferences\\\":\\\"pwd,rsa\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/objectidentifier\\\":\\\"68b1adf9-3eb7-44b0-8eb8-ce96522a08d3\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/scope\\\":\\\"user_impersonation\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/tenantid\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/givenname\\\":\\\"Mariana\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/name\\\":\\\"mariana@elastic.co\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/nameidentifier\\\":\\\"a9L2WR3XZN5ANzAqwLx_4aamU49JG6kqaE5JZkXdeNs\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/surname\\\":\\\"Dima\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/upn\\\":\\\"mariana@elastic.co\\\",\\\"iat\\\":\\\"1634286898\\\",\\\"ipaddr\\\":\\\"77.170.179.229\\\",\\\"iss\\\":\\\"https:\\/\\/sts.windows.net\\/4fa94b7d-a743-486f-abcc-6c276c44cf4b\\/\\\",\\\"name\\\":\\\"Mariana Dima\\\",\\\"nbf\\\":\\\"1634286898\\\",\\\"puid\\\":\\\"1003200045B17AD4\\\",\\\"rh\\\":\\\"0.AVEAfUupT0Onb0irzGwnbETPS4NAS8SwO8FJtH2XTlPL3zxRAA8.\\\",\\\"uti\\\":\\\"yUcYeZwj9EWeA-rTCtRwAA\\\",\\\"ver\\\":\\\"1.0\\\",\\\"wids\\\":\\\"5d6b6bb7-de71-4623-b4af-96380a352509\\\",\\\"xms_tcdt\\\":\\\"1469565974\\\"}},\\\"level\\\":\\\"Information\\\",\\\"operationName\\\":\\\"MICROSOFT.SERVICEBUS\\/NAMESPACES\\/DELETE\\\",\\\"properties\\\":{\\\"entity\\\":\\\"\\/subscriptions\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\/resourcegroups\\/obs-test\\/providers\\/Microsoft.ServiceBus\\/namespaces\\/testobs\\\",\\\"eventCategory\\\":\\\"Administrative\\\",\\\"hierarchy\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\/5341238b-665c-4eb4-b259-b250371ae430\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\\",\\\"message\\\":\\\"Microsoft.ServiceBus\\/namespaces\\/delete\\\"},\\\"resourceId\\\":\\\"\\/SUBSCRIPTIONS\\/7657426D-C4C3-44AC-88A2-3B2CD59E6DBA\\/RESOURCEGROUPS\\/OBS-TEST\\/PROVIDERS\\/MICROSOFT.SERVICEBUS\\/NAMESPACES\\/TESTOBS\\\",\\\"resultSignature\\\":\\\"Started.\\\",\\\"resultType\\\":\\\"Start\\\",\\\"tenantId\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\\",\\\"time\\\":\\\"2021-10-15T09:08:29.9268177Z\\\"}\\r\\n", "azure-eventhub": { - "sequence_number": 1215, "consumer_group": "$Default", - "offset": 274878093752, + "enqueued_time": "2021-10-15T09:14:25.419Z", "eventhub": "insights-activity-logs", - "enqueued_time": "2021-10-15T09:14:25.419Z" + "offset": 274878093752, + "sequence_number": 1215 }, - "tags": [ - "azure-eventhub" - ], - "input": { - "type": "azure-eventhub" + "data_stream": { + "dataset": "azure.eventhub", + "namespace": "default", + "type": "logs" }, - "@timestamp": "2021-10-18T12:31:17.027Z", "ecs": { - "version": "1.12.0" + "version": "8.11.0" }, - "data_stream": { - "namespace": "default", - "type": "logs", - "dataset": "azure.eventhub" + "elastic_agent": { + "id": "b659ebed-5338-45f3-9762-1bcf2c1ad0e1", + "snapshot": true, + "version": "7.15.0" + }, + "event": { + "agent_id_status": "verified", + "dataset": "azure.eventhub", + "ingested": "2021-10-18T12:31:17Z", + "kind": "event" }, "host": { - "hostname": "docker-fleet-agent", - "os": { - "kernel": "4.19.128-microsoft-standard", - "codename": "Core", - "name": "CentOS Linux", - "family": "redhat", - "type": "linux", - "version": "7 (Core)", - "platform": "centos" - }, + "architecture": "x86_64", "containerized": true, + "hostname": "docker-fleet-agent", + "id": "6505f7ca36739e7eb909bdb52bf3ec18", "ip": [ "172.27.0.7" ], - "name": "docker-fleet-agent", - "id": "6505f7ca36739e7eb909bdb52bf3ec18", "mac": [ - "02:42:ac:1b:00:07" + "02-42-AC-14-00-07" ], - "architecture": "x86_64" + "name": "docker-fleet-agent", + "os": { + "codename": "Core", + "family": "redhat", + "kernel": "4.19.128-microsoft-standard", + "name": "CentOS Linux", + "platform": "centos", + "type": "linux", + "version": "7 (Core)" + } }, - "event": { - "agent_id_status": "verified", - "ingested": "2021-10-18T12:31:17Z", - "kind": "event", - "dataset": "azure.eventhub" - } + "input": { + "type": "azure-eventhub" + }, + "message": "{\\\"ReleaseVersion\\\":\\\"6.2021.39.11+d1f0e29.release_2021w39_az\\\",\\\"RoleLocation\\\":\\\"North Europe\\\",\\\"callerIpAddress\\\":\\\"77.170.179.229\\\",\\\"category\\\":\\\"Administrative\\\",\\\"correlationId\\\":\\\"a75a0752-ebbb-42bf-831f-43788a8c1193\\\",\\\"durationMs\\\":\\\"0\\\",\\\"identity\\\":{\\\"authorization\\\":{\\\"action\\\":\\\"Microsoft.ServiceBus\\/namespaces\\/delete\\\",\\\"evidence\\\":{\\\"principalId\\\":\\\"68b1adf93eb744b08eb8ce96522a08d3\\\",\\\"principalType\\\":\\\"User\\\",\\\"role\\\":\\\"Owner\\\",\\\"roleAssignmentId\\\":\\\"7f06f09dd6764b44930adbec3f10e92b\\\",\\\"roleAssignmentScope\\\":\\\"\\/providers\\/Microsoft.Management\\/managementGroups\\/5341238b-665c-4eb4-b259-b250371ae430\\\",\\\"roleDefinitionId\\\":\\\"8e3af657a8ff443ca75c2fe8c4bcb635\\\"},\\\"scope\\\":\\\"\\/subscriptions\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\/resourcegroups\\/obs-test\\/providers\\/Microsoft.ServiceBus\\/namespaces\\/testobs\\\"},\\\"claims\\\":{\\\"aio\\\":\\\"ATQAy\\/8TAAAAgFUjNWoJWKgHlAK2AL92UMeUsb6VD5zck\\/myDZPucX5V3Gc8SDMg5vTV28NUy5N7\\\",\\\"appid\\\":\\\"c44b4083-3bb0-49c1-b47d-974e53cbdf3c\\\",\\\"appidacr\\\":\\\"2\\\",\\\"aud\\\":\\\"https:\\/\\/management.core.windows.net\\/\\\",\\\"exp\\\":\\\"1634290798\\\",\\\"groups\\\":\\\"644c6686-9ef1-4b69-9410-107664a9e1f0,9ed1993c-ce9c-4915-a04d-58c6f5f7ee12,a953f548-26ab-47b2-be7d-65586b7bcc2a\\\",\\\"http:\\/\\/schemas.microsoft.com\\/2012\\/01\\/devicecontext\\/claims\\/identifier\\\":\\\"1060004c-63dc-465b-b868-ec6547176c58\\\",\\\"http:\\/\\/schemas.microsoft.com\\/claims\\/authnclassreference\\\":\\\"1\\\",\\\"http:\\/\\/schemas.microsoft.com\\/claims\\/authnmethodsreferences\\\":\\\"pwd,rsa\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/objectidentifier\\\":\\\"68b1adf9-3eb7-44b0-8eb8-ce96522a08d3\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/scope\\\":\\\"user_impersonation\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/tenantid\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/givenname\\\":\\\"Mariana\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/name\\\":\\\"mariana@elastic.co\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/nameidentifier\\\":\\\"a9L2WR3XZN5ANzAqwLx_4aamU49JG6kqaE5JZkXdeNs\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/surname\\\":\\\"Dima\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/upn\\\":\\\"mariana@elastic.co\\\",\\\"iat\\\":\\\"1634286898\\\",\\\"ipaddr\\\":\\\"77.170.179.229\\\",\\\"iss\\\":\\\"https:\\/\\/sts.windows.net\\/4fa94b7d-a743-486f-abcc-6c276c44cf4b\\/\\\",\\\"name\\\":\\\"Mariana Dima\\\",\\\"nbf\\\":\\\"1634286898\\\",\\\"puid\\\":\\\"1003200045B17AD4\\\",\\\"rh\\\":\\\"0.AVEAfUupT0Onb0irzGwnbETPS4NAS8SwO8FJtH2XTlPL3zxRAA8.\\\",\\\"uti\\\":\\\"yUcYeZwj9EWeA-rTCtRwAA\\\",\\\"ver\\\":\\\"1.0\\\",\\\"wids\\\":\\\"5d6b6bb7-de71-4623-b4af-96380a352509\\\",\\\"xms_tcdt\\\":\\\"1469565974\\\"}},\\\"level\\\":\\\"Information\\\",\\\"operationName\\\":\\\"MICROSOFT.SERVICEBUS\\/NAMESPACES\\/DELETE\\\",\\\"properties\\\":{\\\"entity\\\":\\\"\\/subscriptions\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\/resourcegroups\\/obs-test\\/providers\\/Microsoft.ServiceBus\\/namespaces\\/testobs\\\",\\\"eventCategory\\\":\\\"Administrative\\\",\\\"hierarchy\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\/5341238b-665c-4eb4-b259-b250371ae430\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\\",\\\"message\\\":\\\"Microsoft.ServiceBus\\/namespaces\\/delete\\\"},\\\"resourceId\\\":\\\"\\/SUBSCRIPTIONS\\/7657426D-C4C3-44AC-88A2-3B2CD59E6DBA\\/RESOURCEGROUPS\\/OBS-TEST\\/PROVIDERS\\/MICROSOFT.SERVICEBUS\\/NAMESPACES\\/TESTOBS\\\",\\\"resultSignature\\\":\\\"Started.\\\",\\\"resultType\\\":\\\"Start\\\",\\\"tenantId\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\\",\\\"time\\\":\\\"2021-10-15T09:08:29.9268177Z\\\"}\\r\\n", + "tags": [ + "azure-eventhub" + ] } \ No newline at end of file diff --git a/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-applicationrules-raw.log-expected.json b/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-applicationrules-raw.log-expected.json index 34fa47e7eb7..09de5959d4d 100644 --- a/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-applicationrules-raw.log-expected.json +++ b/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-applicationrules-raw.log-expected.json @@ -28,7 +28,7 @@ "port": 443 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -98,7 +98,7 @@ "port": 443 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -172,7 +172,7 @@ "port": 80 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -246,7 +246,7 @@ "port": 443 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -309,7 +309,7 @@ "provider": "azure" }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -374,7 +374,7 @@ "port": 443 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -445,7 +445,7 @@ "port": 80 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ diff --git a/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-dnsproxyrules-raw.log-expected.json b/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-dnsproxyrules-raw.log-expected.json index fb60d119130..9da8fa0f7a5 100644 --- a/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-dnsproxyrules-raw.log-expected.json +++ b/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-dnsproxyrules-raw.log-expected.json @@ -42,7 +42,7 @@ "response_code": "NXDOMAIN" }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -124,7 +124,7 @@ "response_code": "NOERROR" }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -207,7 +207,7 @@ "response_code": "NXDOMAIN" }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ diff --git a/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-networkrules-raw.log-expected.json b/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-networkrules-raw.log-expected.json index cdedaab8057..bc0e563dfff 100644 --- a/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-networkrules-raw.log-expected.json +++ b/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-networkrules-raw.log-expected.json @@ -50,7 +50,7 @@ "ip": "89.160.20.156" }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -132,7 +132,7 @@ "port": 53 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -216,7 +216,7 @@ "port": 1688 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -303,7 +303,7 @@ "port": 3389 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -392,7 +392,7 @@ "port": 3389 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -474,7 +474,7 @@ "port": 443 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -557,7 +557,7 @@ "port": 1521 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -628,7 +628,7 @@ "port": 80 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -712,7 +712,7 @@ "ip": "175.16.199.1" }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ diff --git a/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-sdh3075-raw.log-expected.json b/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-sdh3075-raw.log-expected.json index 370bbd33226..d7049cdc678 100644 --- a/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-sdh3075-raw.log-expected.json +++ b/packages/azure/data_stream/firewall_logs/_dev/test/pipeline/test-sdh3075-raw.log-expected.json @@ -48,7 +48,7 @@ "port": 1688 }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ diff --git a/packages/azure/data_stream/firewall_logs/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/firewall_logs/elasticsearch/ingest_pipeline/default.yml index 18c252c92ba..4f5d7b95018 100644 --- a/packages/azure/data_stream/firewall_logs/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/firewall_logs/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for processing Azure firewall logs. processors: - set: field: ecs.version - value: '8.3.0' + value: '8.11.0' - set: field: event.kind value: event diff --git a/packages/azure/data_stream/firewall_logs/fields/ecs.yml b/packages/azure/data_stream/firewall_logs/fields/ecs.yml index 89c1e6a5af4..8e65ac53215 100644 --- a/packages/azure/data_stream/firewall_logs/fields/ecs.yml +++ b/packages/azure/data_stream/firewall_logs/fields/ecs.yml @@ -1,129 +1,11 @@ -- name: cloud.account.id - external: ecs -- name: cloud.provider - external: ecs -- name: destination.address - external: ecs -- name: destination.as.number - external: ecs -- name: destination.as.organization.name - external: ecs -- name: destination.domain - external: ecs -- name: destination.geo.city_name - external: ecs -- name: destination.geo.continent_name - external: ecs -- name: destination.geo.country_iso_code - external: ecs -- name: destination.geo.country_name - external: ecs -- name: destination.geo.location - external: ecs -- name: destination.geo.name - external: ecs -- name: destination.geo.region_iso_code - external: ecs -- name: destination.geo.region_name - external: ecs -- name: destination.bytes - external: ecs -- name: destination.ip - external: ecs -- name: destination.port - external: ecs -- name: destination.nat.ip - external: ecs -- name: destination.nat.port - external: ecs - name: dns.header_flags external: ecs -- name: dns.question.class - external: ecs -- name: dns.question.name - external: ecs -- name: dns.question.type - external: ecs -- name: dns.response_code -- name: ecs.version - external: ecs -- name: message - external: ecs -- name: event.action - external: ecs -- name: event.category - external: ecs -- name: event.created - external: ecs -- name: event.duration - external: ecs -- name: event.id - external: ecs -- name: event.ingested - external: ecs -- name: event.kind - external: ecs -- name: event.type - external: ecs -- name: network.iana_number - external: ecs -- name: network.protocol - external: ecs -- name: network.transport - external: ecs -- name: observer.name - external: ecs -- name: observer.product - external: ecs -- name: observer.type - external: ecs -- name: observer.vendor - external: ecs -- name: related.hosts - external: ecs -- name: related.ip - external: ecs -- name: related.user - external: ecs -- name: source.address - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: source.bytes - external: ecs -- name: source.port - external: ecs -- name: log.level - external: ecs -- name: rule.id - external: ecs -- name: rule.name - external: ecs -- name: rule.ruleset - external: ecs -- name: rule.category - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs -- name: source.geo.location - external: ecs -- name: source.geo.name - external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.ip - external: ecs -- name: url.original - external: ecs -- name: tags - external: ecs + expected_values: + - AA + - TC + - RD + - RA + - AD + - CD + - DO + - QR diff --git a/packages/azure/data_stream/firewall_logs/sample_event.json b/packages/azure/data_stream/firewall_logs/sample_event.json index d37c24df4fd..60e8657897a 100644 --- a/packages/azure/data_stream/firewall_logs/sample_event.json +++ b/packages/azure/data_stream/firewall_logs/sample_event.json @@ -48,7 +48,7 @@ "ip": "89.160.20.156" }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ diff --git a/packages/azure/data_stream/graphactivitylogs/_dev/test/pipeline/test-activitylogs-raw.log-expected.json b/packages/azure/data_stream/graphactivitylogs/_dev/test/pipeline/test-activitylogs-raw.log-expected.json index ce88adad1e6..ae888e5503c 100644 --- a/packages/azure/data_stream/graphactivitylogs/_dev/test/pipeline/test-activitylogs-raw.log-expected.json +++ b/packages/azure/data_stream/graphactivitylogs/_dev/test/pipeline/test-activitylogs-raw.log-expected.json @@ -63,7 +63,7 @@ } }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft Graph Activity", @@ -197,7 +197,7 @@ } }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft Graph Activity", @@ -337,7 +337,7 @@ } }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft Graph Activity", @@ -502,7 +502,7 @@ } }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft Graph Activity", @@ -649,7 +649,7 @@ } }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft Graph Activity", diff --git a/packages/azure/data_stream/graphactivitylogs/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/graphactivitylogs/elasticsearch/ingest_pipeline/default.yml index 7cbacb283df..5e5c6e2756a 100644 --- a/packages/azure/data_stream/graphactivitylogs/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/graphactivitylogs/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for parsing azure graph activity logs. processors: - set: field: ecs.version - value: '8.0.0' + value: '8.11.0' tag: set-ecs_version - set: field: event.kind diff --git a/packages/azure/data_stream/graphactivitylogs/fields/agent.yml b/packages/azure/data_stream/graphactivitylogs/fields/agent.yml index b1895d5577a..4b15225a4d4 100644 --- a/packages/azure/data_stream/graphactivitylogs/fields/agent.yml +++ b/packages/azure/data_stream/graphactivitylogs/fields/agent.yml @@ -1,56 +1,6 @@ -- name: cloud.account.id - external: ecs -- name: cloud.availability_zone - external: ecs -- name: cloud.instance.id - external: ecs -- name: cloud.instance.name - external: ecs -- name: cloud.machine.type - external: ecs -- name: cloud.provider - external: ecs -- name: cloud.region - external: ecs -- name: cloud.project.id - external: ecs - name: cloud.image.id type: keyword description: Image ID for the cloud instance. -- name: cloud.service.name - external: ecs -- name: container.id - external: ecs -- name: container.image.name - external: ecs -- name: container.labels - external: ecs -- name: container.name - external: ecs -- name: host.architecture - external: ecs -- name: host.domain - external: ecs -- name: host.hostname - external: ecs -- name: host.id - external: ecs -- name: host.mac - external: ecs -- name: host.name - external: ecs -- name: host.os.family - external: ecs -- name: host.os.kernel - external: ecs -- name: host.os.name - external: ecs -- name: host.os.platform - external: ecs -- name: host.os.version - external: ecs -- name: host.type - external: ecs - name: host.containerized type: boolean description: If the host is a container. diff --git a/packages/azure/data_stream/graphactivitylogs/fields/ecs.yml b/packages/azure/data_stream/graphactivitylogs/fields/ecs.yml index 1a4e00bc06e..716634d1b23 100644 --- a/packages/azure/data_stream/graphactivitylogs/fields/ecs.yml +++ b/packages/azure/data_stream/graphactivitylogs/fields/ecs.yml @@ -1,122 +1,8 @@ -- name: client.as.number - external: ecs -- name: client.as.organization.name - external: ecs -- name: client.ip - external: ecs -- name: client.geo.city_name - external: ecs -- name: client.geo.continent_name - external: ecs -- name: client.geo.country_iso_code - external: ecs -- name: client.geo.country_name - external: ecs - name: client.geo.location.lat external: ecs - name: client.geo.location.lon external: ecs -- name: client.geo.region_iso_code - external: ecs -- name: client.geo.region_name - external: ecs -- name: client.user.id - external: ecs -- name: destination.geo.region_name - external: ecs -- name: ecs.version - external: ecs -- name: message - external: ecs -- name: event.action - external: ecs -- name: event.category - external: ecs -- name: event.created - external: ecs -- name: event.duration - external: ecs -- name: event.id - external: ecs -- name: event.ingested - external: ecs -- name: event.kind - external: ecs -- name: event.type - external: ecs -- name: http.request.id - external: ecs -- name: http.request.method - external: ecs -- name: http.response.bytes - external: ecs -- name: http.response.status_code - external: ecs -- name: log.level - external: ecs -- name: related.ip - external: ecs -- name: related.user - external: ecs -- name: source.address - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs - name: source.geo.location.lat external: ecs - name: source.geo.location.lon external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.ip - external: ecs -- name: url.domain - external: ecs -- name: url.password - external: ecs -- name: url.port - external: ecs -- name: url.username - external: ecs -- name: url.original - external: ecs -- name: url.path - external: ecs -- name: url.query - external: ecs -- name: url.extension - external: ecs -- name: url.scheme - external: ecs -- name: url.full - external: ecs -- name: user.id - external: ecs -- external: ecs - name: user_agent.device.name -- external: ecs - name: user_agent.name -- external: ecs - name: user_agent.original -- external: ecs - name: user_agent.os.full -- external: ecs - name: user_agent.os.name -- external: ecs - name: user_agent.os.version -- external: ecs - name: user_agent.version -- name: tags - external: ecs diff --git a/packages/azure/data_stream/graphactivitylogs/sample_event.json b/packages/azure/data_stream/graphactivitylogs/sample_event.json index 2f107010c19..2558fec3160 100644 --- a/packages/azure/data_stream/graphactivitylogs/sample_event.json +++ b/packages/azure/data_stream/graphactivitylogs/sample_event.json @@ -74,7 +74,7 @@ } }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft Graph Activity", diff --git a/packages/azure/data_stream/identity_protection/_dev/test/pipeline/test-rickyusers-raw.log-expected.json b/packages/azure/data_stream/identity_protection/_dev/test/pipeline/test-rickyusers-raw.log-expected.json index 0c40dcc843b..f6f1f096cc7 100644 --- a/packages/azure/data_stream/identity_protection/_dev/test/pipeline/test-rickyusers-raw.log-expected.json +++ b/packages/azure/data_stream/identity_protection/_dev/test/pipeline/test-rickyusers-raw.log-expected.json @@ -32,7 +32,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "Risky user", @@ -72,7 +72,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "Risky user", diff --git a/packages/azure/data_stream/identity_protection/_dev/test/pipeline/test-userriskevents-raw.log-expected.json b/packages/azure/data_stream/identity_protection/_dev/test/pipeline/test-userriskevents-raw.log-expected.json index 0d62dc6e07a..1a4069be8eb 100644 --- a/packages/azure/data_stream/identity_protection/_dev/test/pipeline/test-userriskevents-raw.log-expected.json +++ b/packages/azure/data_stream/identity_protection/_dev/test/pipeline/test-userriskevents-raw.log-expected.json @@ -58,7 +58,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "User Risk Detection", @@ -139,7 +139,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "User Risk Detection", diff --git a/packages/azure/data_stream/identity_protection/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/identity_protection/elasticsearch/ingest_pipeline/default.yml index 162a1b5c84d..7289e269d05 100644 --- a/packages/azure/data_stream/identity_protection/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/identity_protection/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for parsing Microsoft Entra ID Identity Protection logs. processors: - set: field: ecs.version - value: '8.5.0' + value: '8.11.0' - rename: field: azure target_field: azure-eventhub diff --git a/packages/azure/data_stream/identity_protection/fields/agent.yml b/packages/azure/data_stream/identity_protection/fields/agent.yml index 85704f4c1d4..4b15225a4d4 100644 --- a/packages/azure/data_stream/identity_protection/fields/agent.yml +++ b/packages/azure/data_stream/identity_protection/fields/agent.yml @@ -1,54 +1,6 @@ -- name: cloud.account.id - external: ecs -- name: cloud.availability_zone - external: ecs -- name: cloud.instance.id - external: ecs -- name: cloud.instance.name - external: ecs -- name: cloud.machine.type - external: ecs -- name: cloud.provider - external: ecs -- name: cloud.region - external: ecs -- name: cloud.project.id - external: ecs - name: cloud.image.id type: keyword description: Image ID for the cloud instance. -- name: container.id - external: ecs -- name: container.image.name - external: ecs -- name: container.labels - external: ecs -- name: container.name - external: ecs -- name: host.architecture - external: ecs -- name: host.domain - external: ecs -- name: host.hostname - external: ecs -- name: host.id - external: ecs -- name: host.mac - external: ecs -- name: host.name - external: ecs -- name: host.os.family - external: ecs -- name: host.os.kernel - external: ecs -- name: host.os.name - external: ecs -- name: host.os.platform - external: ecs -- name: host.os.version - external: ecs -- name: host.type - external: ecs - name: host.containerized type: boolean description: If the host is a container. diff --git a/packages/azure/data_stream/identity_protection/fields/ecs.yml b/packages/azure/data_stream/identity_protection/fields/ecs.yml deleted file mode 100644 index 8451f266e58..00000000000 --- a/packages/azure/data_stream/identity_protection/fields/ecs.yml +++ /dev/null @@ -1,96 +0,0 @@ -- name: client.ip - external: ecs -- name: destination.address - external: ecs -- name: destination.as.number - external: ecs -- name: destination.as.organization.name - external: ecs -- name: destination.geo.city_name - external: ecs -- name: destination.geo.continent_name - external: ecs -- name: destination.geo.country_iso_code - external: ecs -- name: destination.geo.country_name - external: ecs -- name: destination.geo.location - external: ecs -- name: destination.geo.name - external: ecs -- name: destination.geo.region_iso_code - external: ecs -- name: destination.geo.region_name - external: ecs -- name: destination.ip - external: ecs -- name: destination.port - external: ecs -- name: ecs.version - external: ecs -- name: message - external: ecs -- name: event.action - external: ecs -- name: event.category - external: ecs -- name: event.created - external: ecs -- name: event.duration - external: ecs -- name: event.id - external: ecs -- name: event.ingested - external: ecs -- name: event.kind - external: ecs -- name: event.type - external: ecs -- name: file.mime_type - external: ecs -- name: file.size - external: ecs -- name: network.community_id - external: ecs -- name: host.ip - external: ecs -- name: related.ip - external: ecs -- name: related.user - external: ecs -- name: source.address - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: log.level - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs -- name: source.geo.location - external: ecs -- name: source.geo.name - external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.ip - external: ecs -- name: user.full_name - external: ecs -- name: user.domain - external: ecs -- name: user.name - external: ecs -- name: user.id - external: ecs -- name: tags - external: ecs diff --git a/packages/azure/data_stream/identity_protection/sample_event.json b/packages/azure/data_stream/identity_protection/sample_event.json index c97ad4dea79..67eec49f614 100644 --- a/packages/azure/data_stream/identity_protection/sample_event.json +++ b/packages/azure/data_stream/identity_protection/sample_event.json @@ -56,7 +56,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "User Risk Detection", diff --git a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-edgecases.log-expected.json b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-edgecases.log-expected.json index 7de715f0c5b..d857e15ebfc 100644 --- a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-edgecases.log-expected.json +++ b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-edgecases.log-expected.json @@ -33,13 +33,13 @@ "region": "West Europe" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Retreive ConsumerGroup", "kind": "event", "original": "{\"ActivityId\":\"30ed877c-a36b-491a-bd4d-ddd847fe55b8\",\"Caller\":\"Portal\",\"callerIpAddress\": \"2a02:cf40:add:4002:91f2:a9b2:e09a:6fc6\",\"Environment\":\"PROD\",\"EventName\":\"Retreive ConsumerGroup\",\"EventProperties\":\"{\\\"SubscriptionId\\\":\\\"7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\\",\\\"Namespace\\\":\\\"obstesteventhubs\\\"}\",\"EventTimeString\":\"11/3/2020 9:06:42 AM +00:00\",\"Region\":\"West Europe\",\"ScaleUnit\":\"PROD-AM3-AZ501\",\"Status\":\"Succeeded\",\"category\":\"OperationalLogs\",\"resourceId\":\"/SUBSCRIPTIONS/7657426D-C4C3-44AC-88A2-3B2CD59E6DBA/RESOURCEGROUPS/OBS-TEST/PROVIDERS/MICROSOFT.EVENTHUB/NAMESPACES/OBSTESTEVENTHUBS\"}", - "outcome": "succeeded" + "outcome": "success" }, "geo": { "continent_name": "Europe", @@ -101,13 +101,13 @@ "region": "West Europe" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Retreive ConsumerGroup", "kind": "event", "original": "{\"ActivityId\":\"30ed877c-a36b-491a-bd4d-ddd847fe55b8\",\"Caller\":\"Portal\",\"callerIpAddress\": \"XX:2a02:cf40:add:4002:91f2:a9b2:e09a:6fc6\",\"Environment\":\"PROD\",\"EventName\":\"Retreive ConsumerGroup\",\"EventProperties\":\"{\\\"SubscriptionId\\\":\\\"7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\\",\\\"Namespace\\\":\\\"obstesteventhubs\\\"}\",\"EventTimeString\":\"11/3/2020 9:06:42 AM +00:00\",\"Region\":\"West Europe\",\"ScaleUnit\":\"PROD-AM3-AZ501\",\"Status\":\"Succeeded\",\"category\":\"OperationalLogs\",\"resourceId\":\"/SUBSCRIPTIONS/7657426D-C4C3-44AC-88A2-3B2CD59E6DBA/RESOURCEGROUPS/OBS-TEST/PROVIDERS/MICROSOFT.EVENTHUB/NAMESPACES/OBSTESTEVENTHUBS\"}", - "outcome": "succeeded" + "outcome": "success" }, "source": { "address": "XX:2a02:cf40:add:4002:91f2:a9b2:e09a:6fc6" diff --git a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-identity-raw.log-expected.json b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-identity-raw.log-expected.json index c5459d86b0b..ebe273ae56a 100644 --- a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-identity-raw.log-expected.json +++ b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-identity-raw.log-expected.json @@ -34,7 +34,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft.ContainerService/managedClusters/diagnosticLogs/Read", diff --git a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-invalid-raw.log-expected.json b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-invalid-raw.log-expected.json index be03da6e0a5..fe2c5e46230 100644 --- a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-invalid-raw.log-expected.json +++ b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-invalid-raw.log-expected.json @@ -34,7 +34,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "ApplicationGatewayAccess", @@ -75,7 +75,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "deviceDisconnect", @@ -122,7 +122,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "invoke", diff --git a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-kube.log-expected.json b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-kube.log-expected.json index aa4073fa33b..992e568b905 100644 --- a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-kube.log-expected.json +++ b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-kube.log-expected.json @@ -29,7 +29,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft.ContainerService/managedClusters/diagnosticLogs/Read", diff --git a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-raw.log-expected.json b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-raw.log-expected.json index 8b7dabf3f11..976ceeb00b4 100644 --- a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-raw.log-expected.json +++ b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-raw.log-expected.json @@ -32,13 +32,13 @@ "region": "West Europe" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Retreive ConsumerGroup", "kind": "event", "original": "{\"ActivityId\":\"30ed877c-a36b-491a-bd4d-ddd847fe55b8\",\"Caller\":\"Portal\",\"Environment\":\"PROD\",\"EventName\":\"Retreive ConsumerGroup\",\"EventProperties\":\"{\\\"SubscriptionId\\\":\\\"7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\\",\\\"Namespace\\\":\\\"obstesteventhubs\\\",\\\"Via\\\":\\\"sb://obstesteventhubs.servicebus.windows.net/insights-logs-operationallogs/consumergroups?api-version=2017-04\\u0026$skip=0\\u0026$top=100\\\",\\\"TrackingId\\\":\\\"30ed877c-a36b-491a-bd4d-ddd847fe55b8_M2CH3_M2CH3_G3S2\\\"}\",\"EventTimeString\":\"11/3/2020 9:06:42 AM +00:00\",\"Region\":\"West Europe\",\"ScaleUnit\":\"PROD-AM3-AZ501\",\"Status\":\"Succeeded\",\"category\":\"OperationalLogs\",\"resourceId\":\"/SUBSCRIPTIONS/7657426D-C4C3-44AC-88A2-3B2CD59E6DBA/RESOURCEGROUPS/OBS-TEST/PROVIDERS/MICROSOFT.EVENTHUB/NAMESPACES/OBSTESTEVENTHUBS\"}", - "outcome": "succeeded" + "outcome": "success" }, "tags": [ "preserve_original_event" @@ -74,13 +74,13 @@ "region": "West Europe" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Retreive ConsumerGroup", "kind": "event", "original": "{\"ActivityId\":\"30ed877c-a36b-491a-bd4d-ddd847fe55b8\",\"Caller\":\"Portal\",\"Environment\":\"PROD\",\"EventName\":\"Retreive ConsumerGroup\",\"EventProperties\":\"{\\\"SubscriptionId\\\":\\\"7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\\",\\\"Namespace\\\":\\\"obstesteventhubs\\\"}\",\"EventTimeString\":\"11/3/2020 9:06:42 AM +00:00\",\"Region\":\"West Europe\",\"ScaleUnit\":\"PROD-AM3-AZ501\",\"Status\":\"Succeeded\",\"category\":\"OperationalLogs\",\"resourceId\":\"/SUBSCRIPTIONS/7657426D-C4C3-44AC-88A2-3B2CD59E6DBA/RESOURCEGROUPS/OBS-TEST/PROVIDERS/MICROSOFT.EVENTHUB/NAMESPACES/OBSTESTEVENTHUBS\"}", - "outcome": "succeeded" + "outcome": "success" }, "tags": [ "preserve_original_event" diff --git a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-remote-raw.log-expected.json b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-remote-raw.log-expected.json index ca58437ef3d..7b1b1df1294 100644 --- a/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-remote-raw.log-expected.json +++ b/packages/azure/data_stream/platformlogs/_dev/test/pipeline/test-platformlogs-remote-raw.log-expected.json @@ -33,7 +33,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft.ContainerService/managedClusters/diagnosticLogs/Read", diff --git a/packages/azure/data_stream/platformlogs/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/platformlogs/elasticsearch/ingest_pipeline/default.yml index 1d7467af402..5c078f570a8 100644 --- a/packages/azure/data_stream/platformlogs/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/platformlogs/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for parsing azure platform logs. processors: - set: field: ecs.version - value: '8.0.0' + value: '8.11.0' - rename: field: azure target_field: azure-eventhub @@ -186,6 +186,16 @@ processors: target_field: event.outcome type: string if: "ctx?.event?.outcome == null && ctx?.azure?.platformlogs?.Status != null && ctx?.azure?.platformlogs?.Status instanceof String && ['success', 'failure', 'unknown', 'Succeeded', 'Failed'].contains(ctx.azure?.platformlogs?.Status)" + - set: + field: event.outcome + value: "success" + override: true + if: ctx?.event?.outcome != null && ctx?.event?.outcome == "Succeeded" + - set: + field: event.outcome + value: "failure" + override: true + if: ctx?.event?.outcome != null && ctx?.event?.outcome == "Failed" - rename: field: azure.platformlogs.operationName target_field: azure.platformlogs.operation_name diff --git a/packages/azure/data_stream/platformlogs/fields/agent.yml b/packages/azure/data_stream/platformlogs/fields/agent.yml index 85704f4c1d4..4b15225a4d4 100644 --- a/packages/azure/data_stream/platformlogs/fields/agent.yml +++ b/packages/azure/data_stream/platformlogs/fields/agent.yml @@ -1,54 +1,6 @@ -- name: cloud.account.id - external: ecs -- name: cloud.availability_zone - external: ecs -- name: cloud.instance.id - external: ecs -- name: cloud.instance.name - external: ecs -- name: cloud.machine.type - external: ecs -- name: cloud.provider - external: ecs -- name: cloud.region - external: ecs -- name: cloud.project.id - external: ecs - name: cloud.image.id type: keyword description: Image ID for the cloud instance. -- name: container.id - external: ecs -- name: container.image.name - external: ecs -- name: container.labels - external: ecs -- name: container.name - external: ecs -- name: host.architecture - external: ecs -- name: host.domain - external: ecs -- name: host.hostname - external: ecs -- name: host.id - external: ecs -- name: host.mac - external: ecs -- name: host.name - external: ecs -- name: host.os.family - external: ecs -- name: host.os.kernel - external: ecs -- name: host.os.name - external: ecs -- name: host.os.platform - external: ecs -- name: host.os.version - external: ecs -- name: host.type - external: ecs - name: host.containerized type: boolean description: If the host is a container. diff --git a/packages/azure/data_stream/platformlogs/fields/ecs.yml b/packages/azure/data_stream/platformlogs/fields/ecs.yml deleted file mode 100644 index a2b068950f1..00000000000 --- a/packages/azure/data_stream/platformlogs/fields/ecs.yml +++ /dev/null @@ -1,96 +0,0 @@ -- name: destination.address - external: ecs -- name: destination.as.number - external: ecs -- name: destination.as.organization.name - external: ecs -- name: destination.geo.city_name - external: ecs -- name: destination.geo.continent_name - external: ecs -- name: destination.geo.country_iso_code - external: ecs -- name: destination.geo.country_name - external: ecs -- name: destination.geo.location - external: ecs -- name: destination.geo.name - external: ecs -- name: destination.geo.region_iso_code - external: ecs -- name: destination.geo.region_name - external: ecs -- name: destination.ip - external: ecs -- name: destination.port - external: ecs -- name: ecs.version - external: ecs -- name: message - external: ecs -- name: event.action - external: ecs -- name: event.category - external: ecs -- name: event.created - external: ecs -- name: event.duration - external: ecs -- name: event.id - external: ecs -- name: event.ingested - external: ecs -- name: event.kind - external: ecs -- name: event.type - external: ecs -- name: file.mime_type - external: ecs -- name: file.size - external: ecs -- name: network.community_id - external: ecs -- name: host.ip - external: ecs -- name: related.ip - external: ecs -- name: related.user - external: ecs -- name: source.address - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: log.level - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs -- name: source.geo.location - external: ecs -- name: source.geo.name - external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.ip - external: ecs -- name: user.full_name - external: ecs -- name: user.domain - external: ecs -- name: user.name - external: ecs -- name: user.id - external: ecs -- name: tags - external: ecs -- name: client.ip - external: ecs diff --git a/packages/azure/data_stream/platformlogs/sample_event.json b/packages/azure/data_stream/platformlogs/sample_event.json index 44c25798414..b3ac4af560b 100644 --- a/packages/azure/data_stream/platformlogs/sample_event.json +++ b/packages/azure/data_stream/platformlogs/sample_event.json @@ -1,62 +1,62 @@ { + "@timestamp": "2020-11-05T14:07:32.000Z", "agent": { + "ephemeral_id": "d3c4d56c-e7c7-489e-9d25-683452d16ec9", "hostname": "DESKTOP-RFOOE09", - "name": "DESKTOP-RFOOE09", "id": "c1118415-bcb7-4cf9-b64d-a6c6e8ebcfac", + "name": "DESKTOP-RFOOE09", "type": "filebeat", - "ephemeral_id": "d3c4d56c-e7c7-489e-9d25-683452d16ec9", "version": "7.10.0" }, - "elastic_agent": { - "id": "02f4e39d-8a1b-4506-a531-b45d0f492ee7", - "version": "7.10.0", - "snapshot": false - }, - "cloud": { - "provider": "azure", - "region": "West Europe" - }, - "@timestamp": "2020-11-05T14:07:32.000Z", - "ecs": { - "version": "1.5.0" - }, - "data_stream": { - "namespace": "default", - "type": "logs", - "dataset": "azure.platformlogs" - }, - "host": { - "name": "DESKTOP-RFOOE09" - }, - "event": { - "ingested": "2020-11-01T12:02:34.237205200Z", - "kind": "event", - "action": "Retreive Namespace", - "dataset": "azure.platformlogs", - "outcome": "succeeded" - }, "azure": { - "subscription_id": "7657426D-C4C3-44AC-88A2-3B2CD59E6DBA", "platformlogs": { - "Caller": "Portal", "ActivityId": "5890c6fc-fc6b-47cd-971a-2366a1641d99", - "EventTimeString": "11/5/2020 2:07:32 PM +00:00", + "Caller": "Portal", "Environment": "PROD", + "EventTimeString": "11/5/2020 2:07:32 PM +00:00", + "ScaleUnit": "PROD-AM3-AZ501", "category": "OperationalLogs", "event_category": "Administrative", - "ScaleUnit": "PROD-AM3-AZ501", "properties": { + "Namespace": "obstesteventhubs", "SubscriptionId": "7657426d-c4c3-44ac-88a2-3b2cd59e6dba", "TrackingId": "5890c6fc-fc6b-47cd-971a-2366a1641d99_M8CH3_M8CH3_G8S3", - "Namespace": "obstesteventhubs", - "Via": "https://obstesteventhubs.servicebus.windows.net/$Resources/eventhubs?api-version=2017-04\u0026$skip=0\u0026$top=100" + "Via": "https://obstesteventhubs.servicebus.windows.net/$Resources/eventhubs?api-version=2017-04&$skip=0&$top=100" } }, "resource": { - "provider": "MICROSOFT.EVENTHUB/NAMESPACES", - "name": "OBSTESTEVENTHUBS", + "group": "OBS-TEST", "id": "/SUBSCRIPTIONS/7657426D-C4C3-44AC-88A2-3B2CD59E6DBA/RESOURCEGROUPS/OBS-TEST/PROVIDERS/MICROSOFT.EVENTHUB/NAMESPACES/OBSTESTEVENTHUBS", - "group": "OBS-TEST" - } + "name": "OBSTESTEVENTHUBS", + "provider": "MICROSOFT.EVENTHUB/NAMESPACES" + }, + "subscription_id": "7657426D-C4C3-44AC-88A2-3B2CD59E6DBA" + }, + "cloud": { + "provider": "azure", + "region": "West Europe" + }, + "data_stream": { + "dataset": "azure.platformlogs", + "namespace": "default", + "type": "logs" + }, + "ecs": { + "version": "8.11.0" + }, + "elastic_agent": { + "id": "02f4e39d-8a1b-4506-a531-b45d0f492ee7", + "snapshot": false, + "version": "7.10.0" + }, + "event": { + "action": "Retreive Namespace", + "dataset": "azure.platformlogs", + "ingested": "2020-11-01T12:02:34.237205200Z", + "kind": "event", + "outcome": "success" + }, + "host": { + "name": "DESKTOP-RFOOE09" } } \ No newline at end of file diff --git a/packages/azure/data_stream/provisioning/_dev/test/pipeline/test-provisioninglogs-raw.log-expected.json b/packages/azure/data_stream/provisioning/_dev/test/pipeline/test-provisioninglogs-raw.log-expected.json index 45bef467b85..5471f91c794 100644 --- a/packages/azure/data_stream/provisioning/_dev/test/pipeline/test-provisioninglogs-raw.log-expected.json +++ b/packages/azure/data_stream/provisioning/_dev/test/pipeline/test-provisioninglogs-raw.log-expected.json @@ -126,7 +126,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "Provisioning activity", @@ -290,7 +290,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "Provisioning activity", @@ -439,7 +439,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "Provisioning activity", diff --git a/packages/azure/data_stream/provisioning/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/provisioning/elasticsearch/ingest_pipeline/default.yml index 7fbbf7aef3c..f6d5c2d9a3a 100644 --- a/packages/azure/data_stream/provisioning/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/provisioning/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for parsing Azure Provisioning logs. processors: - set: field: ecs.version - value: '8.5.0' + value: '8.11.0' - rename: field: azure target_field: azure-eventhub diff --git a/packages/azure/data_stream/provisioning/fields/agent.yml b/packages/azure/data_stream/provisioning/fields/agent.yml index 85704f4c1d4..4b15225a4d4 100644 --- a/packages/azure/data_stream/provisioning/fields/agent.yml +++ b/packages/azure/data_stream/provisioning/fields/agent.yml @@ -1,54 +1,6 @@ -- name: cloud.account.id - external: ecs -- name: cloud.availability_zone - external: ecs -- name: cloud.instance.id - external: ecs -- name: cloud.instance.name - external: ecs -- name: cloud.machine.type - external: ecs -- name: cloud.provider - external: ecs -- name: cloud.region - external: ecs -- name: cloud.project.id - external: ecs - name: cloud.image.id type: keyword description: Image ID for the cloud instance. -- name: container.id - external: ecs -- name: container.image.name - external: ecs -- name: container.labels - external: ecs -- name: container.name - external: ecs -- name: host.architecture - external: ecs -- name: host.domain - external: ecs -- name: host.hostname - external: ecs -- name: host.id - external: ecs -- name: host.mac - external: ecs -- name: host.name - external: ecs -- name: host.os.family - external: ecs -- name: host.os.kernel - external: ecs -- name: host.os.name - external: ecs -- name: host.os.platform - external: ecs -- name: host.os.version - external: ecs -- name: host.type - external: ecs - name: host.containerized type: boolean description: If the host is a container. diff --git a/packages/azure/data_stream/provisioning/fields/ecs.yml b/packages/azure/data_stream/provisioning/fields/ecs.yml deleted file mode 100644 index 8451f266e58..00000000000 --- a/packages/azure/data_stream/provisioning/fields/ecs.yml +++ /dev/null @@ -1,96 +0,0 @@ -- name: client.ip - external: ecs -- name: destination.address - external: ecs -- name: destination.as.number - external: ecs -- name: destination.as.organization.name - external: ecs -- name: destination.geo.city_name - external: ecs -- name: destination.geo.continent_name - external: ecs -- name: destination.geo.country_iso_code - external: ecs -- name: destination.geo.country_name - external: ecs -- name: destination.geo.location - external: ecs -- name: destination.geo.name - external: ecs -- name: destination.geo.region_iso_code - external: ecs -- name: destination.geo.region_name - external: ecs -- name: destination.ip - external: ecs -- name: destination.port - external: ecs -- name: ecs.version - external: ecs -- name: message - external: ecs -- name: event.action - external: ecs -- name: event.category - external: ecs -- name: event.created - external: ecs -- name: event.duration - external: ecs -- name: event.id - external: ecs -- name: event.ingested - external: ecs -- name: event.kind - external: ecs -- name: event.type - external: ecs -- name: file.mime_type - external: ecs -- name: file.size - external: ecs -- name: network.community_id - external: ecs -- name: host.ip - external: ecs -- name: related.ip - external: ecs -- name: related.user - external: ecs -- name: source.address - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: log.level - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs -- name: source.geo.location - external: ecs -- name: source.geo.name - external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.ip - external: ecs -- name: user.full_name - external: ecs -- name: user.domain - external: ecs -- name: user.name - external: ecs -- name: user.id - external: ecs -- name: tags - external: ecs diff --git a/packages/azure/data_stream/provisioning/sample_event.json b/packages/azure/data_stream/provisioning/sample_event.json index d30c525cf4a..571088d0103 100644 --- a/packages/azure/data_stream/provisioning/sample_event.json +++ b/packages/azure/data_stream/provisioning/sample_event.json @@ -124,7 +124,7 @@ "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "Provisioning activity", diff --git a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-managed-identity-sample.log-expected.json b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-managed-identity-sample.log-expected.json index d7245f58b2f..9791e148ec9 100644 --- a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-managed-identity-sample.log-expected.json +++ b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-managed-identity-sample.log-expected.json @@ -49,7 +49,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -129,7 +129,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -209,7 +209,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -289,7 +289,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -369,7 +369,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -449,7 +449,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -529,7 +529,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -609,7 +609,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -689,7 +689,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -769,7 +769,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -849,7 +849,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -929,7 +929,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1009,7 +1009,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1089,7 +1089,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1169,7 +1169,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1249,7 +1249,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1329,7 +1329,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1409,7 +1409,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1489,7 +1489,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1569,7 +1569,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1649,7 +1649,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1729,7 +1729,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1809,7 +1809,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1889,7 +1889,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1969,7 +1969,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -2049,7 +2049,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -2129,7 +2129,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -2209,7 +2209,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -2289,7 +2289,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -2369,7 +2369,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -2449,7 +2449,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -2529,7 +2529,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -2609,7 +2609,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-managed-identity.log-expected.json b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-managed-identity.log-expected.json index cfeb576766e..2896e523acf 100644 --- a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-managed-identity.log-expected.json +++ b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-managed-identity.log-expected.json @@ -42,7 +42,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user-sample.log-expected.json b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user-sample.log-expected.json index a812245724c..43799ec0141 100644 --- a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user-sample.log-expected.json +++ b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user-sample.log-expected.json @@ -83,7 +83,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -218,7 +218,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -353,7 +353,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -489,7 +489,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -624,7 +624,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -759,7 +759,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -894,7 +894,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1030,7 +1030,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1165,7 +1165,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1300,7 +1300,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1435,7 +1435,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1570,7 +1570,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1706,7 +1706,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1842,7 +1842,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -1978,7 +1978,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user-signin.log-expected.json b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user-signin.log-expected.json index 5555b2cd72c..0178e7ac03b 100644 --- a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user-signin.log-expected.json +++ b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user-signin.log-expected.json @@ -235,7 +235,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user.log-expected.json b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user.log-expected.json index e7fa514ac60..1d052c53f58 100644 --- a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user.log-expected.json +++ b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-non-interactive-user.log-expected.json @@ -187,7 +187,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-service-principal-signinlogs-sample.log-expected.json b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-service-principal-signinlogs-sample.log-expected.json index 55af1783827..eadac1676b0 100644 --- a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-service-principal-signinlogs-sample.log-expected.json +++ b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-service-principal-signinlogs-sample.log-expected.json @@ -57,7 +57,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -161,7 +161,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -265,7 +265,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -369,7 +369,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -473,7 +473,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -577,7 +577,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -681,7 +681,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-service-principal.log-expected.json b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-service-principal.log-expected.json index bd46018afb4..5405006510c 100644 --- a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-service-principal.log-expected.json +++ b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-service-principal.log-expected.json @@ -48,7 +48,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-signinlogs-raw.log-expected.json b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-signinlogs-raw.log-expected.json index e99cafe9270..618347f918c 100644 --- a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-signinlogs-raw.log-expected.json +++ b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-signinlogs-raw.log-expected.json @@ -57,7 +57,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -174,7 +174,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-signinlogs-sample.log-expected.json b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-signinlogs-sample.log-expected.json index 3e6725b5bad..feed65ac1bb 100644 --- a/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-signinlogs-sample.log-expected.json +++ b/packages/azure/data_stream/signinlogs/_dev/test/pipeline/test-signinlogs-sample.log-expected.json @@ -94,7 +94,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", @@ -254,7 +254,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Sign-in activity", diff --git a/packages/azure/data_stream/signinlogs/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/signinlogs/elasticsearch/ingest_pipeline/default.yml index 504980709d4..373fdf5d75f 100644 --- a/packages/azure/data_stream/signinlogs/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/signinlogs/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for parsing Azure sign-in logs. processors: - set: field: ecs.version - value: '8.0.0' + value: '8.11.0' - rename: field: azure target_field: azure-eventhub diff --git a/packages/azure/data_stream/signinlogs/fields/agent.yml b/packages/azure/data_stream/signinlogs/fields/agent.yml index 85704f4c1d4..4b15225a4d4 100644 --- a/packages/azure/data_stream/signinlogs/fields/agent.yml +++ b/packages/azure/data_stream/signinlogs/fields/agent.yml @@ -1,54 +1,6 @@ -- name: cloud.account.id - external: ecs -- name: cloud.availability_zone - external: ecs -- name: cloud.instance.id - external: ecs -- name: cloud.instance.name - external: ecs -- name: cloud.machine.type - external: ecs -- name: cloud.provider - external: ecs -- name: cloud.region - external: ecs -- name: cloud.project.id - external: ecs - name: cloud.image.id type: keyword description: Image ID for the cloud instance. -- name: container.id - external: ecs -- name: container.image.name - external: ecs -- name: container.labels - external: ecs -- name: container.name - external: ecs -- name: host.architecture - external: ecs -- name: host.domain - external: ecs -- name: host.hostname - external: ecs -- name: host.id - external: ecs -- name: host.mac - external: ecs -- name: host.name - external: ecs -- name: host.os.family - external: ecs -- name: host.os.kernel - external: ecs -- name: host.os.name - external: ecs -- name: host.os.platform - external: ecs -- name: host.os.version - external: ecs -- name: host.type - external: ecs - name: host.containerized type: boolean description: If the host is a container. diff --git a/packages/azure/data_stream/signinlogs/fields/ecs.yml b/packages/azure/data_stream/signinlogs/fields/ecs.yml deleted file mode 100644 index c24550048cc..00000000000 --- a/packages/azure/data_stream/signinlogs/fields/ecs.yml +++ /dev/null @@ -1,112 +0,0 @@ -- name: client.ip - external: ecs -- name: destination.address - external: ecs -- name: destination.as.number - external: ecs -- name: destination.as.organization.name - external: ecs -- name: destination.geo.city_name - external: ecs -- name: destination.geo.continent_name - external: ecs -- name: destination.geo.country_iso_code - external: ecs -- name: destination.geo.country_name - external: ecs -- name: destination.geo.location - external: ecs -- name: destination.geo.name - external: ecs -- name: destination.geo.region_iso_code - external: ecs -- name: destination.geo.region_name - external: ecs -- name: destination.ip - external: ecs -- name: destination.port - external: ecs -- name: ecs.version - external: ecs -- name: message - external: ecs -- name: event.action - external: ecs -- name: event.category - external: ecs -- name: event.created - external: ecs -- name: event.duration - external: ecs -- name: event.id - external: ecs -- name: event.ingested - external: ecs -- name: event.kind - external: ecs -- name: event.type - external: ecs -- name: file.mime_type - external: ecs -- name: file.size - external: ecs -- name: network.community_id - external: ecs -- name: host.ip - external: ecs -- name: related.ip - external: ecs -- name: related.user - external: ecs -- name: source.address - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: log.level - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs -- name: source.geo.location - external: ecs -- name: source.geo.name - external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.ip - external: ecs -- name: source.port - external: ecs -- name: user.full_name - external: ecs -- name: user.domain - external: ecs -- name: user.name - external: ecs -- name: user.id - external: ecs -- name: user_agent.device.name - external: ecs -- name: user_agent.name - external: ecs -- name: user_agent.original - external: ecs -- name: user_agent.os.full - external: ecs -- name: user_agent.os.name - external: ecs -- name: user_agent.os.version - external: ecs -- name: user_agent.version - external: ecs -- name: tags - external: ecs diff --git a/packages/azure/data_stream/signinlogs/sample_event.json b/packages/azure/data_stream/signinlogs/sample_event.json index 0b5046535ec..39ba8d5e3e4 100644 --- a/packages/azure/data_stream/signinlogs/sample_event.json +++ b/packages/azure/data_stream/signinlogs/sample_event.json @@ -1,120 +1,120 @@ { - "log": { - "level": "4" - }, - "source": { - "geo": { - "continent_name": "Oceania", - "country_name": "Australia", - "location": { - "lon": 143.2104, - "lat": -33.494 - }, - "country_iso_code": "AU" + "@timestamp": "2019-10-18T09:45:48.072Z", + "azure": { + "correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "resource": { + "id": "/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam", + "provider": "Microsoft.aadiam" }, - "as": { - "number": 13335, - "organization": { - "name": "Cloudflare, Inc." - } + "signinlogs": { + "category": "SignInLogs", + "identity": "Test LTest", + "operation_name": "Sign-in activity", + "operation_version": "1.0", + "properties": { + "app_display_name": "Office 365", + "app_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "client_app_used": "Browser", + "conditional_access_status": "notApplied", + "correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "created_at": "2019-10-18T04:45:48.0729893-05:00", + "device_detail": { + "browser": "Chrome 77.0.3865", + "device_id": "", + "operating_system": "MacOs" + }, + "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "is_interactive": false, + "original_request_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "processing_time_ms": 239, + "risk_detail": "none", + "risk_level_aggregated": "none", + "risk_level_during_signin": "none", + "risk_state": "none", + "service_principal_id": "", + "status": { + "error_code": 50140 + }, + "token_issuer_name": "", + "token_issuer_type": "AzureAD", + "user_display_name": "Test LTest", + "user_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "user_principal_name": "test@elastic.co" + }, + "result_description": "This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.", + "result_signature": "None", + "result_type": "50140" }, - "address": "1.1.1.1", - "ip": "1.1.1.1" + "tenant_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53" }, - "message": "This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.", - "tags": [ - "preserve_original_event" - ], - "geo": { - "country_name": "Seine-Et-Marne", - "city_name": "Champs-Sur-Marne", - "location": { - "lon": 2.12341234, - "lat": 48.12341234 - }, - "country_iso_code": "FR" + "client": { + "ip": "1.1.1.1" }, "cloud": { "provider": "azure" }, - "@timestamp": "2019-10-18T09:45:48.072Z", "ecs": { - "version": "1.11.0" - }, - "related": { - "ip": [ - "1.1.1.1" - ] - }, - "client": { - "ip": "1.1.1.1" + "version": "8.11.0" }, "event": { - "duration": 0, - "ingested": "2021-09-14T17:20:47.736433526Z", - "original": "{\"Level\":\"4\",\"callerIpAddress\":\"1.1.1.1\",\"category\":\"SignInLogs\",\"correlationId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"durationMs\":0,\"identity\":\"Test LTest\",\"location\":\"FR\",\"operationName\":\"Sign-in activity\",\"operationVersion\":\"1.0\",\"properties\":{\"appDisplayName\":\"Office 365\",\"appId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"clientAppUsed\":\"Browser\",\"conditionalAccessStatus\":\"notApplied\",\"correlationId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"createdDateTime\":\"2019-10-18T04:45:48.0729893-05:00\",\"deviceDetail\":{\"browser\":\"Chrome 77.0.3865\",\"deviceId\":\"\",\"operatingSystem\":\"MacOs\"},\"id\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"ipAddress\":\"1.1.1.1\",\"isInteractive\":false,\"location\":{\"city\":\"Champs-Sur-Marne\",\"countryOrRegion\":\"FR\",\"geoCoordinates\":{\"latitude\":48.12341234,\"longitude\":2.12341234},\"state\":\"Seine-Et-Marne\"},\"originalRequestId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"processingTimeInMilliseconds\":239,\"riskDetail\":\"none\",\"riskLevelAggregated\":\"none\",\"riskLevelDuringSignIn\":\"none\",\"riskState\":\"none\",\"servicePrincipalId\":\"\",\"status\":{\"errorCode\":50140,\"failureReason\":\"This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.\"},\"tokenIssuerName\":\"\",\"tokenIssuerType\":\"AzureAD\",\"userDisplayName\":\"Test LTest\",\"userId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"userPrincipalName\":\"test@elastic.co\"},\"resourceId\":\"/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam\",\"resultDescription\":\"This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.\",\"resultSignature\":\"None\",\"resultType\":\"50140\",\"tenantId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"time\":\"2019-10-18T09:45:48.0729893Z\"}", - "kind": "event", "action": "Sign-in activity", - "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", "category": [ "authentication" ], + "duration": 0, + "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "ingested": "2021-09-14T17:20:47.736433526Z", + "kind": "event", + "original": "{\"Level\":\"4\",\"callerIpAddress\":\"1.1.1.1\",\"category\":\"SignInLogs\",\"correlationId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"durationMs\":0,\"identity\":\"Test LTest\",\"location\":\"FR\",\"operationName\":\"Sign-in activity\",\"operationVersion\":\"1.0\",\"properties\":{\"appDisplayName\":\"Office 365\",\"appId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"clientAppUsed\":\"Browser\",\"conditionalAccessStatus\":\"notApplied\",\"correlationId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"createdDateTime\":\"2019-10-18T04:45:48.0729893-05:00\",\"deviceDetail\":{\"browser\":\"Chrome 77.0.3865\",\"deviceId\":\"\",\"operatingSystem\":\"MacOs\"},\"id\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"ipAddress\":\"1.1.1.1\",\"isInteractive\":false,\"location\":{\"city\":\"Champs-Sur-Marne\",\"countryOrRegion\":\"FR\",\"geoCoordinates\":{\"latitude\":48.12341234,\"longitude\":2.12341234},\"state\":\"Seine-Et-Marne\"},\"originalRequestId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"processingTimeInMilliseconds\":239,\"riskDetail\":\"none\",\"riskLevelAggregated\":\"none\",\"riskLevelDuringSignIn\":\"none\",\"riskState\":\"none\",\"servicePrincipalId\":\"\",\"status\":{\"errorCode\":50140,\"failureReason\":\"This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.\"},\"tokenIssuerName\":\"\",\"tokenIssuerType\":\"AzureAD\",\"userDisplayName\":\"Test LTest\",\"userId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"userPrincipalName\":\"test@elastic.co\"},\"resourceId\":\"/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam\",\"resultDescription\":\"This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.\",\"resultSignature\":\"None\",\"resultType\":\"50140\",\"tenantId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"time\":\"2019-10-18T09:45:48.0729893Z\"}", + "outcome": "failure", "type": [ "info" - ], - "outcome": "failure" + ] }, - "user": { - "name": "test", - "full_name": "Test LTest", - "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "domain": "elastic.co" + "geo": { + "city_name": "Champs-Sur-Marne", + "country_iso_code": "FR", + "country_name": "Seine-Et-Marne", + "location": { + "lat": 48.12341234, + "lon": 2.12341234 + } }, - "azure": { - "tenant_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "signinlogs": { - "operation_name": "Sign-in activity", - "result_description": "This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.", - "result_type": "50140", - "operation_version": "1.0", - "identity": "Test LTest", - "result_signature": "None", - "category": "SignInLogs", - "properties": { - "risk_level_aggregated": "none", - "client_app_used": "Browser", - "is_interactive": false, - "service_principal_id": "", - "app_display_name": "Office 365", - "created_at": "2019-10-18T04:45:48.0729893-05:00", - "risk_level_during_signin": "none", - "device_detail": { - "device_id": "", - "operating_system": "MacOs", - "browser": "Chrome 77.0.3865" - }, - "risk_detail": "none", - "token_issuer_name": "", - "risk_state": "none", - "user_principal_name": "test@elastic.co", - "token_issuer_type": "AzureAD", - "processing_time_ms": 239, - "original_request_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "user_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "conditional_access_status": "notApplied", - "correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "user_display_name": "Test LTest", - "app_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "status": { - "error_code": 50140 - } + "log": { + "level": "4" + }, + "message": "This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.", + "related": { + "ip": [ + "1.1.1.1" + ] + }, + "source": { + "address": "1.1.1.1", + "as": { + "number": 13335, + "organization": { + "name": "Cloudflare, Inc." } }, - "resource": { - "provider": "Microsoft.aadiam", - "id": "/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam" - } + "geo": { + "continent_name": "Oceania", + "country_iso_code": "AU", + "country_name": "Australia", + "location": { + "lat": -33.494, + "lon": 143.2104 + } + }, + "ip": "1.1.1.1" + }, + "tags": [ + "preserve_original_event" + ], + "user": { + "domain": "elastic.co", + "full_name": "Test LTest", + "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "name": "test" } } \ No newline at end of file diff --git a/packages/azure/data_stream/springcloudlogs/_dev/test/pipeline/test-springcloudlogs-edgecases.log-expected.json b/packages/azure/data_stream/springcloudlogs/_dev/test/pipeline/test-springcloudlogs-edgecases.log-expected.json index f0f561cde7c..6ed098e47d9 100644 --- a/packages/azure/data_stream/springcloudlogs/_dev/test/pipeline/test-springcloudlogs-edgecases.log-expected.json +++ b/packages/azure/data_stream/springcloudlogs/_dev/test/pipeline/test-springcloudlogs-edgecases.log-expected.json @@ -31,7 +31,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft.AppPlatform/Spring/logs", @@ -100,7 +100,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft.AppPlatform/Spring/logs", diff --git a/packages/azure/data_stream/springcloudlogs/_dev/test/pipeline/test-springcloudlogs-raw.log-expected.json b/packages/azure/data_stream/springcloudlogs/_dev/test/pipeline/test-springcloudlogs-raw.log-expected.json index 5867b636563..e2eec0c89bf 100644 --- a/packages/azure/data_stream/springcloudlogs/_dev/test/pipeline/test-springcloudlogs-raw.log-expected.json +++ b/packages/azure/data_stream/springcloudlogs/_dev/test/pipeline/test-springcloudlogs-raw.log-expected.json @@ -28,7 +28,7 @@ "provider": "azure" }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft.AppPlatform/Spring/logs", diff --git a/packages/azure/data_stream/springcloudlogs/elasticsearch/ingest_pipeline/default.yml b/packages/azure/data_stream/springcloudlogs/elasticsearch/ingest_pipeline/default.yml index d377d299de1..9a9222b10a2 100644 --- a/packages/azure/data_stream/springcloudlogs/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure/data_stream/springcloudlogs/elasticsearch/ingest_pipeline/default.yml @@ -3,7 +3,7 @@ description: Pipeline for parsing azure spring apps logs. processors: - set: field: ecs.version - value: "8.0.0" + value: "8.11.0" - rename: field: azure target_field: azure-eventhub diff --git a/packages/azure/data_stream/springcloudlogs/fields/agent.yml b/packages/azure/data_stream/springcloudlogs/fields/agent.yml index 85704f4c1d4..4b15225a4d4 100644 --- a/packages/azure/data_stream/springcloudlogs/fields/agent.yml +++ b/packages/azure/data_stream/springcloudlogs/fields/agent.yml @@ -1,54 +1,6 @@ -- name: cloud.account.id - external: ecs -- name: cloud.availability_zone - external: ecs -- name: cloud.instance.id - external: ecs -- name: cloud.instance.name - external: ecs -- name: cloud.machine.type - external: ecs -- name: cloud.provider - external: ecs -- name: cloud.region - external: ecs -- name: cloud.project.id - external: ecs - name: cloud.image.id type: keyword description: Image ID for the cloud instance. -- name: container.id - external: ecs -- name: container.image.name - external: ecs -- name: container.labels - external: ecs -- name: container.name - external: ecs -- name: host.architecture - external: ecs -- name: host.domain - external: ecs -- name: host.hostname - external: ecs -- name: host.id - external: ecs -- name: host.mac - external: ecs -- name: host.name - external: ecs -- name: host.os.family - external: ecs -- name: host.os.kernel - external: ecs -- name: host.os.name - external: ecs -- name: host.os.platform - external: ecs -- name: host.os.version - external: ecs -- name: host.type - external: ecs - name: host.containerized type: boolean description: If the host is a container. diff --git a/packages/azure/data_stream/springcloudlogs/fields/ecs.yml b/packages/azure/data_stream/springcloudlogs/fields/ecs.yml deleted file mode 100644 index 8451f266e58..00000000000 --- a/packages/azure/data_stream/springcloudlogs/fields/ecs.yml +++ /dev/null @@ -1,96 +0,0 @@ -- name: client.ip - external: ecs -- name: destination.address - external: ecs -- name: destination.as.number - external: ecs -- name: destination.as.organization.name - external: ecs -- name: destination.geo.city_name - external: ecs -- name: destination.geo.continent_name - external: ecs -- name: destination.geo.country_iso_code - external: ecs -- name: destination.geo.country_name - external: ecs -- name: destination.geo.location - external: ecs -- name: destination.geo.name - external: ecs -- name: destination.geo.region_iso_code - external: ecs -- name: destination.geo.region_name - external: ecs -- name: destination.ip - external: ecs -- name: destination.port - external: ecs -- name: ecs.version - external: ecs -- name: message - external: ecs -- name: event.action - external: ecs -- name: event.category - external: ecs -- name: event.created - external: ecs -- name: event.duration - external: ecs -- name: event.id - external: ecs -- name: event.ingested - external: ecs -- name: event.kind - external: ecs -- name: event.type - external: ecs -- name: file.mime_type - external: ecs -- name: file.size - external: ecs -- name: network.community_id - external: ecs -- name: host.ip - external: ecs -- name: related.ip - external: ecs -- name: related.user - external: ecs -- name: source.address - external: ecs -- name: source.as.number - external: ecs -- name: source.as.organization.name - external: ecs -- name: log.level - external: ecs -- name: source.geo.city_name - external: ecs -- name: source.geo.continent_name - external: ecs -- name: source.geo.country_iso_code - external: ecs -- name: source.geo.country_name - external: ecs -- name: source.geo.location - external: ecs -- name: source.geo.name - external: ecs -- name: source.geo.region_iso_code - external: ecs -- name: source.geo.region_name - external: ecs -- name: source.ip - external: ecs -- name: user.full_name - external: ecs -- name: user.domain - external: ecs -- name: user.name - external: ecs -- name: user.id - external: ecs -- name: tags - external: ecs diff --git a/packages/azure/data_stream/springcloudlogs/sample_event.json b/packages/azure/data_stream/springcloudlogs/sample_event.json index 463756ab72d..7cbdb41e76b 100644 --- a/packages/azure/data_stream/springcloudlogs/sample_event.json +++ b/packages/azure/data_stream/springcloudlogs/sample_event.json @@ -1,67 +1,67 @@ { + "@timestamp": "2021-08-03T15:07:03.354Z", "agent": { + "ephemeral_id": "49d0a57c-119c-4a01-878c-d9b06fc81f65", "hostname": "docker-fleet-agent", - "name": "docker-fleet-agent", "id": "ef999bb2-fe83-4ffa-aa0c-0b54b7598df4", + "name": "docker-fleet-agent", "type": "filebeat", - "ephemeral_id": "49d0a57c-119c-4a01-878c-d9b06fc81f65", "version": "7.14.0" }, - "log": { - "level": "Informational" - }, - "elastic_agent": { - "id": "ef999bb2-fe83-4ffa-aa0c-0b54b7598df4", - "version": "7.14.0", - "snapshot": true - }, - "message": "2021-08-03 15:07:03.354 INFO [helloapp,,,] 1 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration", - "tags": [ - "azure-springcloudlogs" - ], - "geo": { - "name": "westeurope" - }, - "cloud": { - "provider": "azure" - }, - "@timestamp": "2021-08-03T15:07:03.354Z", - "ecs": { - "version": "1.10.0" - }, - "data_stream": { - "namespace": "default", - "type": "logs", - "dataset": "azure.springcloudlogs" - }, - "event": { - "agent_id_status": "verified", - "ingested": "2021-08-03T15:15:14.386889100Z", - "kind": "event", - "action": "Microsoft.AppPlatform/Spring/logs", - "dataset": "azure.springcloudlogs" - }, "azure": { - "subscription_id": "0E073EC1-C22F-4488-ADDE-DA35ED609CCD", + "resource": { + "group": "TESTM", + "id": "/SUBSCRIPTIONS/0E073EC1-C22F-4488-ADDE-DA35ED609CCD/RESOURCEGROUPS/TESTM/PROVIDERS/MICROSOFT.APPPLATFORM/SPRING/OBSSPRINCLOUD", + "name": "OBSSPRINCLOUD", + "provider": "MICROSOFT.APPPLATFORM/SPRING" + }, "springcloudlogs": { - "log_format": "RAW", - "operation_name": "Microsoft.AppPlatform/Spring/logs", "category": "ApplicationConsole", "event_category": "Administrative", + "log_format": "RAW", "logtag": "F", + "operation_name": "Microsoft.AppPlatform/Spring/logs", "properties": { "app_name": "helloapp", "instance_name": "helloapp-default-8-56df6b7f56-4vr94", - "stream": "stdout", + "service_id": "99070c7524f14eaf970bbdf35f357772", "service_name": "obssprincloud", - "service_id": "99070c7524f14eaf970bbdf35f357772" + "stream": "stdout" } }, - "resource": { - "provider": "MICROSOFT.APPPLATFORM/SPRING", - "name": "OBSSPRINCLOUD", - "id": "/SUBSCRIPTIONS/0E073EC1-C22F-4488-ADDE-DA35ED609CCD/RESOURCEGROUPS/TESTM/PROVIDERS/MICROSOFT.APPPLATFORM/SPRING/OBSSPRINCLOUD", - "group": "TESTM" - } - } + "subscription_id": "0E073EC1-C22F-4488-ADDE-DA35ED609CCD" + }, + "cloud": { + "provider": "azure" + }, + "data_stream": { + "dataset": "azure.springcloudlogs", + "namespace": "default", + "type": "logs" + }, + "ecs": { + "version": "8.11.0" + }, + "elastic_agent": { + "id": "ef999bb2-fe83-4ffa-aa0c-0b54b7598df4", + "snapshot": true, + "version": "7.14.0" + }, + "event": { + "action": "Microsoft.AppPlatform/Spring/logs", + "agent_id_status": "verified", + "dataset": "azure.springcloudlogs", + "ingested": "2021-08-03T15:15:14.386889100Z", + "kind": "event" + }, + "geo": { + "name": "westeurope" + }, + "log": { + "level": "Informational" + }, + "message": "2021-08-03 15:07:03.354 INFO [helloapp,,,] 1 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration", + "tags": [ + "azure-springcloudlogs" + ] } \ No newline at end of file diff --git a/packages/azure/docs/activitylogs.md b/packages/azure/docs/activitylogs.md index 90d7943d594..384be09ae70 100644 --- a/packages/azure/docs/activitylogs.md +++ b/packages/azure/docs/activitylogs.md @@ -66,94 +66,98 @@ An example event for `activitylogs` looks as following: ```json { - "log": { - "level": "Information" - }, - "cloud": { - "provider": "azure" - }, "@timestamp": "2020-11-02T08:51:36.997Z", - "ecs": { - "version": "1.5.0" - }, - "data_stream": { - "namespace": "default", - "type": "logs", - "dataset": "azure.activitylogs" - }, - "event": { - "duration": 0, - "ingested": "2020-10-30T20:47:48.123859400Z", - "kind": "event", - "action": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", - "dataset": "azure.activitylogs", - "outcome": "success" - }, "azure": { - "subscription_id": "3f041b6d-fc31-41d8-8ff6-e5f16e6747ff", - "resource": { - "provider": "MICROSOFT.RESOURCES/DEPLOYMENTS", - "name": "NOMARKETPLACE", - "id": "/SUBSCRIPTIONS/3f041b6d-fc31-41d8-8ff6-e5f16e6747ff/RESOURCEGROUPS/OBS-TEST/PROVIDERS/MICROSOFT.RESOURCES/DEPLOYMENTS/NOMARKETPLACE", - "group": "OBS-TEST" - }, - "correlation_id": "876190b4-5b99-4a39-b725-4f5644911cf0", "activitylogs": { - "operation_name": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", - "result_type": "Success", + "category": "Administrative", + "event_category": "Administrative", "identity": { "authorization": { + "action": "Microsoft.Resources/deployments/write", "evidence": { - "role_definition_id": "8e3af657a8ff443ca75c2fe8c4bcb635", + "principal_id": "68b1adf93eb744b08eb8ce96522a08d3", + "principal_type": "User", "role": "Owner", - "role_assignment_scope": "/providers/Microsoft.Management/managementGroups/5341238b-665c-4eb4-b259-b250371ae430", "role_assignment_id": "7f06f09dd6764b44930adbec3f10e92b", - "principal_type": "User", - "principal_id": "68b1adf93eb744b08eb8ce96522a08d3" + "role_assignment_scope": "/providers/Microsoft.Management/managementGroups/5341238b-665c-4eb4-b259-b250371ae430", + "role_definition_id": "8e3af657a8ff443ca75c2fe8c4bcb635" }, - "scope": "/subscriptions/3f041b6d-fc31-41d8-8ff6-e5f16e6747ff/resourceGroups/obs-test/providers/Microsoft.Resources/deployments/NoMarketplace", - "action": "Microsoft.Resources/deployments/write" + "scope": "/subscriptions/3f041b6d-fc31-41d8-8ff6-e5f16e6747ff/resourceGroups/obs-test/providers/Microsoft.Resources/deployments/NoMarketplace" }, "claims": { - "xms_tcdt": "1469565974", "aio": "ATQAy/8RAAAAsL67UQMOHZv3izTDRJfvJN5UyON9ktUszzPj08K8aURsbhxhR0niz9s1Pxm9U1lI", - "iss": "https://sts.windows.net/4fa94b7d-a743-486f-abcc-6c276c44cf4b/", - "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/nameidentifier": "a9L2WR3XZN5ANzAqwLx_4aamU49JG6kqaE5JZkXdeNs", - "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/surname": "Doe", - "http://schemas_microsoft_com/identity/claims/scope": "user_impersonation", - "http://schemas_microsoft_com/identity/claims/tenantid": "4fa94b7d-a743-486f-abcc-6c276c44cf4b", - "puid": "1003200045B17AD4", - "wids": "5d6b6bb7-de71-4623-b4af-96380a352509", - "http://schemas_microsoft_com/claims/authnclassreference": "1", + "appid": "c44b4083-3bb0-49c1-b47d-974e53cbdf3c", + "appidacr": "2", + "aud": "https://management.core.windows.net/", "exp": "1604310019", - "ipaddr": "77.170.179.229", - "iat": "1604306119", - "http://schemas_microsoft_com/identity/claims/objectidentifier": "68b1adf9-3eb7-44b0-8eb8-ce96522a08d3", - "http://schemas_microsoft_com/claims/authnmethodsreferences": "pwd", - "ver": "1.0", "groups": "644c6686-9ef1-4b69-9410-107664a9e1f0,9ed1993c-ce9c-4915-a04d-58c6f5f7ee12", - "uti": "rqr63RW_Kk6ztuomENMQAA", + "http://schemas_microsoft_com/claims/authnclassreference": "1", + "http://schemas_microsoft_com/claims/authnmethodsreferences": "pwd", + "http://schemas_microsoft_com/identity/claims/objectidentifier": "68b1adf9-3eb7-44b0-8eb8-ce96522a08d3", + "http://schemas_microsoft_com/identity/claims/scope": "user_impersonation", + "http://schemas_microsoft_com/identity/claims/tenantid": "4fa94b7d-a743-486f-abcc-6c276c44cf4b", + "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/givenname": "John", + "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/name": "john@gmail.com", + "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/nameidentifier": "a9L2WR3XZN5ANzAqwLx_4aamU49JG6kqaE5JZkXdeNs", + "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/surname": "Doe", "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/upn": "john@gmail.com", - "aud": "https://management.core.windows.net/", + "iat": "1604306119", + "ipaddr": "77.170.179.229", + "iss": "https://sts.windows.net/4fa94b7d-a743-486f-abcc-6c276c44cf4b/", "nbf": "1604306119", - "appidacr": "2", + "puid": "1003200045B17AD4", "rh": "0.AAAAfUupT0Onb0irzGwnbETPS4NAS8SwO8FJtH2XTlPL3zxRAA8.", - "appid": "c44b4083-3bb0-49c1-b47d-974e53cbdf3c", - "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/givenname": "John", - "http://schemas_xmlsoap_org/ws/2005/05/identity/claims/name": "john@gmail.com" + "uti": "rqr63RW_Kk6ztuomENMQAA", + "ver": "1.0", + "wids": "5d6b6bb7-de71-4623-b4af-96380a352509", + "xms_tcdt": "1469565974" }, "claims_initiated_by_user": { "schema": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims" } }, - "category": "Administrative", - "event_category": "Administrative", - "result_signature": "Succeeded." - } + "operation_name": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", + "result_signature": "Succeeded.", + "result_type": "Success" + }, + "correlation_id": "876190b4-5b99-4a39-b725-4f5644911cf0", + "resource": { + "group": "OBS-TEST", + "id": "/SUBSCRIPTIONS/3f041b6d-fc31-41d8-8ff6-e5f16e6747ff/RESOURCEGROUPS/OBS-TEST/PROVIDERS/MICROSOFT.RESOURCES/DEPLOYMENTS/NOMARKETPLACE", + "name": "NOMARKETPLACE", + "provider": "MICROSOFT.RESOURCES/DEPLOYMENTS" + }, + "subscription_id": "3f041b6d-fc31-41d8-8ff6-e5f16e6747ff" + }, + "cloud": { + "provider": "azure" + }, + "data_stream": { + "dataset": "azure.activitylogs", + "namespace": "default", + "type": "logs" + }, + "ecs": { + "version": "8.11.0" + }, + "event": { + "action": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", + "dataset": "azure.activitylogs", + "duration": 0, + "ingested": "2020-10-30T20:47:48.123859400Z", + "kind": "event", + "outcome": "success" + }, + "log": { + "level": "Information" } } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -192,50 +196,12 @@ An example event for `activitylogs` looks as following: | azure.resource.provider | Resource type/namespace | keyword | | azure.subscription_id | Azure subscription ID | keyword | | azure.tenant_id | tenant ID | keyword | -| client.ip | IP address of the client (IPv4 or IPv6). | ip | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword | | cloud.image.id | Image ID for the cloud instance. | keyword | -| cloud.instance.id | Instance ID of the host machine. | keyword | -| cloud.instance.name | Instance name of the host machine. | keyword | -| cloud.machine.type | Machine type of the host machine. | keyword | -| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | -| cloud.region | Region in which this host, resource, or service is located. | keyword | -| container.id | Unique container id. | keyword | -| container.image.name | Name of the image the container was built on. | keyword | -| container.labels | Image labels. | object | -| container.name | Container name. | keyword | | data_stream.dataset | Data stream dataset name. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| destination.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| destination.as.organization.name | Organization name. | keyword | -| destination.as.organization.name.text | Multi-field of `destination.as.organization.name`. | match_only_text | -| destination.geo.city_name | City name. | keyword | -| destination.geo.continent_name | Name of the continent. | keyword | -| destination.geo.country_iso_code | Country ISO code. | keyword | -| destination.geo.country_name | Country name. | keyword | -| destination.geo.location | Longitude and latitude. | geo_point | -| destination.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| destination.geo.region_iso_code | Region ISO code. | keyword | -| destination.geo.region_name | Region name. | keyword | -| destination.ip | IP address of the destination (IPv4 or IPv6). | ip | -| destination.port | Port of the destination. | long | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | -| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date | | event.dataset | Event dataset | constant_keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.id | Unique ID to describe the event. | keyword | -| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | -| file.mime_type | MIME type should identify the format of the file or stream of bytes using https://www.iana.org/assignments/media-types/media-types.xhtml[IANA official types], where possible. When more than one type is applicable, the most specific type should be used. | keyword | -| file.size | File size in bytes. Only relevant when `file.type` is "file". | long | | geo.city_name | City name. | keyword | | geo.continent_name | Name of the continent. | keyword | | geo.country_iso_code | Country ISO code. | keyword | @@ -244,46 +210,7 @@ An example event for `activitylogs` looks as following: | geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | | geo.region_iso_code | Region ISO code. | keyword | | geo.region_name | Region name. | keyword | -| host.architecture | Operating system architecture. | keyword | | host.containerized | If the host is a container. | boolean | -| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | -| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | -| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | -| host.ip | Host ip addresses. | ip | -| host.mac | Host MAC addresses. The notation format from RFC 7042 is suggested: Each octet (that is, 8-bit byte) is represented by two [uppercase] hexadecimal digits giving the value of the octet as an unsigned integer. Successive octets are separated by a hyphen. | keyword | -| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | host.os.build | OS build information. | keyword | | host.os.codename | OS codename, if any. | keyword | -| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | -| host.os.kernel | Operating system kernel version as a raw string. | keyword | -| host.os.name | Operating system name, without the version. | keyword | -| host.os.name.text | Multi-field of `host.os.name`. | match_only_text | -| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | -| host.os.version | Operating system version as a raw string. | keyword | -| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | -| log.level | Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are `warn`, `err`, `i`, `informational`. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| network.community_id | A hash of source and destination IPs and ports, as well as the protocol used in a communication. This is a tool-agnostic standard to identify flows. Learn more at https://github.com/corelight/community-id-spec. | keyword | -| related.ip | All of the IPs seen on your event. | ip | -| related.user | All the user names or other user identifiers seen on the event. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | -| source.geo.location | Longitude and latitude. | geo_point | -| source.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| tags | List of keywords used to tag each event. | keyword | -| user.domain | Name of the directory the user is a member of. For example, an LDAP or Active Directory domain name. | keyword | -| user.full_name | User's full name, if available. | keyword | -| user.full_name.text | Multi-field of `user.full_name`. | match_only_text | -| user.id | Unique identifier of the user. | keyword | -| user.name | Short name or login of the user. | keyword | -| user.name.text | Multi-field of `user.name`. | match_only_text | diff --git a/packages/azure/docs/adlogs.md b/packages/azure/docs/adlogs.md index cfc49543d43..94a4891729f 100644 --- a/packages/azure/docs/adlogs.md +++ b/packages/azure/docs/adlogs.md @@ -88,127 +88,131 @@ An example event for `signinlogs` looks as following: ```json { - "log": { - "level": "4" - }, - "source": { - "geo": { - "continent_name": "Oceania", - "country_name": "Australia", - "location": { - "lon": 143.2104, - "lat": -33.494 - }, - "country_iso_code": "AU" + "@timestamp": "2019-10-18T09:45:48.072Z", + "azure": { + "correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "resource": { + "id": "/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam", + "provider": "Microsoft.aadiam" }, - "as": { - "number": 13335, - "organization": { - "name": "Cloudflare, Inc." - } + "signinlogs": { + "category": "SignInLogs", + "identity": "Test LTest", + "operation_name": "Sign-in activity", + "operation_version": "1.0", + "properties": { + "app_display_name": "Office 365", + "app_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "client_app_used": "Browser", + "conditional_access_status": "notApplied", + "correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "created_at": "2019-10-18T04:45:48.0729893-05:00", + "device_detail": { + "browser": "Chrome 77.0.3865", + "device_id": "", + "operating_system": "MacOs" + }, + "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "is_interactive": false, + "original_request_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "processing_time_ms": 239, + "risk_detail": "none", + "risk_level_aggregated": "none", + "risk_level_during_signin": "none", + "risk_state": "none", + "service_principal_id": "", + "status": { + "error_code": 50140 + }, + "token_issuer_name": "", + "token_issuer_type": "AzureAD", + "user_display_name": "Test LTest", + "user_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "user_principal_name": "test@elastic.co" + }, + "result_description": "This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.", + "result_signature": "None", + "result_type": "50140" }, - "address": "1.1.1.1", - "ip": "1.1.1.1" + "tenant_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53" }, - "message": "This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.", - "tags": [ - "preserve_original_event" - ], - "geo": { - "country_name": "Seine-Et-Marne", - "city_name": "Champs-Sur-Marne", - "location": { - "lon": 2.12341234, - "lat": 48.12341234 - }, - "country_iso_code": "FR" + "client": { + "ip": "1.1.1.1" }, "cloud": { "provider": "azure" }, - "@timestamp": "2019-10-18T09:45:48.072Z", "ecs": { - "version": "1.11.0" - }, - "related": { - "ip": [ - "1.1.1.1" - ] - }, - "client": { - "ip": "1.1.1.1" + "version": "8.11.0" }, "event": { - "duration": 0, - "ingested": "2021-09-14T17:20:47.736433526Z", - "original": "{\"Level\":\"4\",\"callerIpAddress\":\"1.1.1.1\",\"category\":\"SignInLogs\",\"correlationId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"durationMs\":0,\"identity\":\"Test LTest\",\"location\":\"FR\",\"operationName\":\"Sign-in activity\",\"operationVersion\":\"1.0\",\"properties\":{\"appDisplayName\":\"Office 365\",\"appId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"clientAppUsed\":\"Browser\",\"conditionalAccessStatus\":\"notApplied\",\"correlationId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"createdDateTime\":\"2019-10-18T04:45:48.0729893-05:00\",\"deviceDetail\":{\"browser\":\"Chrome 77.0.3865\",\"deviceId\":\"\",\"operatingSystem\":\"MacOs\"},\"id\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"ipAddress\":\"1.1.1.1\",\"isInteractive\":false,\"location\":{\"city\":\"Champs-Sur-Marne\",\"countryOrRegion\":\"FR\",\"geoCoordinates\":{\"latitude\":48.12341234,\"longitude\":2.12341234},\"state\":\"Seine-Et-Marne\"},\"originalRequestId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"processingTimeInMilliseconds\":239,\"riskDetail\":\"none\",\"riskLevelAggregated\":\"none\",\"riskLevelDuringSignIn\":\"none\",\"riskState\":\"none\",\"servicePrincipalId\":\"\",\"status\":{\"errorCode\":50140,\"failureReason\":\"This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.\"},\"tokenIssuerName\":\"\",\"tokenIssuerType\":\"AzureAD\",\"userDisplayName\":\"Test LTest\",\"userId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"userPrincipalName\":\"test@elastic.co\"},\"resourceId\":\"/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam\",\"resultDescription\":\"This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.\",\"resultSignature\":\"None\",\"resultType\":\"50140\",\"tenantId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"time\":\"2019-10-18T09:45:48.0729893Z\"}", - "kind": "event", "action": "Sign-in activity", - "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", "category": [ "authentication" ], + "duration": 0, + "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "ingested": "2021-09-14T17:20:47.736433526Z", + "kind": "event", + "original": "{\"Level\":\"4\",\"callerIpAddress\":\"1.1.1.1\",\"category\":\"SignInLogs\",\"correlationId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"durationMs\":0,\"identity\":\"Test LTest\",\"location\":\"FR\",\"operationName\":\"Sign-in activity\",\"operationVersion\":\"1.0\",\"properties\":{\"appDisplayName\":\"Office 365\",\"appId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"clientAppUsed\":\"Browser\",\"conditionalAccessStatus\":\"notApplied\",\"correlationId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"createdDateTime\":\"2019-10-18T04:45:48.0729893-05:00\",\"deviceDetail\":{\"browser\":\"Chrome 77.0.3865\",\"deviceId\":\"\",\"operatingSystem\":\"MacOs\"},\"id\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"ipAddress\":\"1.1.1.1\",\"isInteractive\":false,\"location\":{\"city\":\"Champs-Sur-Marne\",\"countryOrRegion\":\"FR\",\"geoCoordinates\":{\"latitude\":48.12341234,\"longitude\":2.12341234},\"state\":\"Seine-Et-Marne\"},\"originalRequestId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"processingTimeInMilliseconds\":239,\"riskDetail\":\"none\",\"riskLevelAggregated\":\"none\",\"riskLevelDuringSignIn\":\"none\",\"riskState\":\"none\",\"servicePrincipalId\":\"\",\"status\":{\"errorCode\":50140,\"failureReason\":\"This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.\"},\"tokenIssuerName\":\"\",\"tokenIssuerType\":\"AzureAD\",\"userDisplayName\":\"Test LTest\",\"userId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"userPrincipalName\":\"test@elastic.co\"},\"resourceId\":\"/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam\",\"resultDescription\":\"This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.\",\"resultSignature\":\"None\",\"resultType\":\"50140\",\"tenantId\":\"8a4de8b5-095c-47d0-a96f-a75130c61d53\",\"time\":\"2019-10-18T09:45:48.0729893Z\"}", + "outcome": "failure", "type": [ "info" - ], - "outcome": "failure" + ] }, - "user": { - "name": "test", - "full_name": "Test LTest", - "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "domain": "elastic.co" + "geo": { + "city_name": "Champs-Sur-Marne", + "country_iso_code": "FR", + "country_name": "Seine-Et-Marne", + "location": { + "lat": 48.12341234, + "lon": 2.12341234 + } }, - "azure": { - "tenant_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "signinlogs": { - "operation_name": "Sign-in activity", - "result_description": "This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.", - "result_type": "50140", - "operation_version": "1.0", - "identity": "Test LTest", - "result_signature": "None", - "category": "SignInLogs", - "properties": { - "risk_level_aggregated": "none", - "client_app_used": "Browser", - "is_interactive": false, - "service_principal_id": "", - "app_display_name": "Office 365", - "created_at": "2019-10-18T04:45:48.0729893-05:00", - "risk_level_during_signin": "none", - "device_detail": { - "device_id": "", - "operating_system": "MacOs", - "browser": "Chrome 77.0.3865" - }, - "risk_detail": "none", - "token_issuer_name": "", - "risk_state": "none", - "user_principal_name": "test@elastic.co", - "token_issuer_type": "AzureAD", - "processing_time_ms": 239, - "original_request_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "user_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "conditional_access_status": "notApplied", - "correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "user_display_name": "Test LTest", - "app_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "status": { - "error_code": 50140 - } + "log": { + "level": "4" + }, + "message": "This error occurred due to 'Keep me signed in' interrupt when the user was signing-in.", + "related": { + "ip": [ + "1.1.1.1" + ] + }, + "source": { + "address": "1.1.1.1", + "as": { + "number": 13335, + "organization": { + "name": "Cloudflare, Inc." } }, - "resource": { - "provider": "Microsoft.aadiam", - "id": "/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam" - } + "geo": { + "continent_name": "Oceania", + "country_iso_code": "AU", + "country_name": "Australia", + "location": { + "lat": -33.494, + "lon": 143.2104 + } + }, + "ip": "1.1.1.1" + }, + "tags": [ + "preserve_original_event" + ], + "user": { + "domain": "elastic.co", + "full_name": "Test LTest", + "id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "name": "test" } } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -283,108 +287,20 @@ An example event for `signinlogs` looks as following: | azure.signinlogs.tenant_id | Tenant ID | keyword | | azure.subscription_id | Azure subscription ID | keyword | | azure.tenant_id | tenant ID | keyword | -| client.ip | IP address of the client (IPv4 or IPv6). | ip | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword | | cloud.image.id | Image ID for the cloud instance. | keyword | -| cloud.instance.id | Instance ID of the host machine. | keyword | -| cloud.instance.name | Instance name of the host machine. | keyword | -| cloud.machine.type | Machine type of the host machine. | keyword | -| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | -| cloud.region | Region in which this host, resource, or service is located. | keyword | -| container.id | Unique container id. | keyword | -| container.image.name | Name of the image the container was built on. | keyword | -| container.labels | Image labels. | object | -| container.name | Container name. | keyword | | data_stream.dataset | Data stream dataset name. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| destination.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| destination.as.organization.name | Organization name. | keyword | -| destination.as.organization.name.text | Multi-field of `destination.as.organization.name`. | match_only_text | -| destination.geo.city_name | City name. | keyword | -| destination.geo.continent_name | Name of the continent. | keyword | -| destination.geo.country_iso_code | Country ISO code. | keyword | -| destination.geo.country_name | Country name. | keyword | -| destination.geo.location | Longitude and latitude. | geo_point | -| destination.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| destination.geo.region_iso_code | Region ISO code. | keyword | -| destination.geo.region_name | Region name. | keyword | -| destination.ip | IP address of the destination (IPv4 or IPv6). | ip | -| destination.port | Port of the destination. | long | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | -| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date | | event.dataset | Event dataset | constant_keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.id | Unique ID to describe the event. | keyword | -| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | -| file.mime_type | MIME type should identify the format of the file or stream of bytes using https://www.iana.org/assignments/media-types/media-types.xhtml[IANA official types], where possible. When more than one type is applicable, the most specific type should be used. | keyword | -| file.size | File size in bytes. Only relevant when `file.type` is "file". | long | | geo.city_name | City name. | keyword | | geo.continent_name | Name of the continent. | keyword | | geo.country_iso_code | Country ISO code. | keyword | | geo.country_name | Country name. | keyword | | geo.location | Longitude and latitude. | geo_point | -| host.architecture | Operating system architecture. | keyword | | host.containerized | If the host is a container. | boolean | -| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | -| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | -| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | -| host.ip | Host ip addresses. | ip | -| host.mac | Host MAC addresses. The notation format from RFC 7042 is suggested: Each octet (that is, 8-bit byte) is represented by two [uppercase] hexadecimal digits giving the value of the octet as an unsigned integer. Successive octets are separated by a hyphen. | keyword | -| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | host.os.build | OS build information. | keyword | | host.os.codename | OS codename, if any. | keyword | -| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | -| host.os.kernel | Operating system kernel version as a raw string. | keyword | -| host.os.name | Operating system name, without the version. | keyword | -| host.os.name.text | Multi-field of `host.os.name`. | match_only_text | -| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | -| host.os.version | Operating system version as a raw string. | keyword | -| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | -| log.level | Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are `warn`, `err`, `i`, `informational`. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| network.community_id | A hash of source and destination IPs and ports, as well as the protocol used in a communication. This is a tool-agnostic standard to identify flows. Learn more at https://github.com/corelight/community-id-spec. | keyword | -| related.ip | All of the IPs seen on your event. | ip | -| related.user | All the user names or other user identifiers seen on the event. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | -| source.geo.location | Longitude and latitude. | geo_point | -| source.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| source.port | Port of the source. | long | -| tags | List of keywords used to tag each event. | keyword | -| user.domain | Name of the directory the user is a member of. For example, an LDAP or Active Directory domain name. | keyword | -| user.full_name | User's full name, if available. | keyword | -| user.full_name.text | Multi-field of `user.full_name`. | match_only_text | -| user.id | Unique identifier of the user. | keyword | -| user.name | Short name or login of the user. | keyword | -| user.name.text | Multi-field of `user.name`. | match_only_text | -| user_agent.device.name | Name of the device. | keyword | -| user_agent.name | Name of the user agent. | keyword | -| user_agent.original | Unparsed user_agent string. | keyword | -| user_agent.original.text | Multi-field of `user_agent.original`. | match_only_text | -| user_agent.os.full | Operating system name, including the version or code name. | keyword | -| user_agent.os.full.text | Multi-field of `user_agent.os.full`. | match_only_text | -| user_agent.os.name | Operating system name, without the version. | keyword | -| user_agent.os.name.text | Multi-field of `user_agent.os.name`. | match_only_text | -| user_agent.os.version | Operating system version as a raw string. | keyword | -| user_agent.version | Version of the user agent. | keyword | ### Identity Protection logs @@ -452,7 +368,7 @@ An example event for `identity_protection` looks as following: "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "User Risk Detection", @@ -477,6 +393,10 @@ An example event for `identity_protection` looks as following: } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -523,50 +443,12 @@ An example event for `identity_protection` looks as following: | azure.resource.provider | Resource type/namespace | keyword | | azure.subscription_id | Azure subscription ID | keyword | | azure.tenant_id | tenant ID | keyword | -| client.ip | IP address of the client (IPv4 or IPv6). | ip | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword | | cloud.image.id | Image ID for the cloud instance. | keyword | -| cloud.instance.id | Instance ID of the host machine. | keyword | -| cloud.instance.name | Instance name of the host machine. | keyword | -| cloud.machine.type | Machine type of the host machine. | keyword | -| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | -| cloud.region | Region in which this host, resource, or service is located. | keyword | -| container.id | Unique container id. | keyword | -| container.image.name | Name of the image the container was built on. | keyword | -| container.labels | Image labels. | object | -| container.name | Container name. | keyword | | data_stream.dataset | Data stream dataset name. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| destination.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| destination.as.organization.name | Organization name. | keyword | -| destination.as.organization.name.text | Multi-field of `destination.as.organization.name`. | match_only_text | -| destination.geo.city_name | City name. | keyword | -| destination.geo.continent_name | Name of the continent. | keyword | -| destination.geo.country_iso_code | Country ISO code. | keyword | -| destination.geo.country_name | Country name. | keyword | -| destination.geo.location | Longitude and latitude. | geo_point | -| destination.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| destination.geo.region_iso_code | Region ISO code. | keyword | -| destination.geo.region_name | Region name. | keyword | -| destination.ip | IP address of the destination (IPv4 or IPv6). | ip | -| destination.port | Port of the destination. | long | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | -| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date | | event.dataset | Event dataset | constant_keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.id | Unique ID to describe the event. | keyword | -| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | -| file.mime_type | MIME type should identify the format of the file or stream of bytes using https://www.iana.org/assignments/media-types/media-types.xhtml[IANA official types], where possible. When more than one type is applicable, the most specific type should be used. | keyword | -| file.size | File size in bytes. Only relevant when `file.type` is "file". | long | | geo.city_name | City name. | keyword | | geo.continent_name | Name of the continent. | keyword | | geo.country_iso_code | Country ISO code. | keyword | @@ -575,48 +457,9 @@ An example event for `identity_protection` looks as following: | geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | | geo.region_iso_code | Region ISO code. | keyword | | geo.region_name | Region name. | keyword | -| host.architecture | Operating system architecture. | keyword | | host.containerized | If the host is a container. | boolean | -| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | -| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | -| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | -| host.ip | Host ip addresses. | ip | -| host.mac | Host MAC addresses. The notation format from RFC 7042 is suggested: Each octet (that is, 8-bit byte) is represented by two [uppercase] hexadecimal digits giving the value of the octet as an unsigned integer. Successive octets are separated by a hyphen. | keyword | -| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | host.os.build | OS build information. | keyword | | host.os.codename | OS codename, if any. | keyword | -| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | -| host.os.kernel | Operating system kernel version as a raw string. | keyword | -| host.os.name | Operating system name, without the version. | keyword | -| host.os.name.text | Multi-field of `host.os.name`. | match_only_text | -| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | -| host.os.version | Operating system version as a raw string. | keyword | -| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | -| log.level | Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are `warn`, `err`, `i`, `informational`. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| network.community_id | A hash of source and destination IPs and ports, as well as the protocol used in a communication. This is a tool-agnostic standard to identify flows. Learn more at https://github.com/corelight/community-id-spec. | keyword | -| related.ip | All of the IPs seen on your event. | ip | -| related.user | All the user names or other user identifiers seen on the event. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | -| source.geo.location | Longitude and latitude. | geo_point | -| source.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| tags | List of keywords used to tag each event. | keyword | -| user.domain | Name of the directory the user is a member of. For example, an LDAP or Active Directory domain name. | keyword | -| user.full_name | User's full name, if available. | keyword | -| user.full_name.text | Multi-field of `user.full_name`. | match_only_text | -| user.id | Unique identifier of the user. | keyword | -| user.name | Short name or login of the user. | keyword | -| user.name.text | Multi-field of `user.name`. | match_only_text | ### Provisioning logs @@ -759,7 +602,7 @@ An example event for `provisioning` looks as following: "provider": "azure" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "action": "Provisioning activity", @@ -769,6 +612,10 @@ An example event for `provisioning` looks as following: } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -834,50 +681,12 @@ An example event for `provisioning` looks as following: | azure.resource.provider | Resource type/namespace | keyword | | azure.subscription_id | Azure subscription ID | keyword | | azure.tenant_id | tenant ID | keyword | -| client.ip | IP address of the client (IPv4 or IPv6). | ip | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword | | cloud.image.id | Image ID for the cloud instance. | keyword | -| cloud.instance.id | Instance ID of the host machine. | keyword | -| cloud.instance.name | Instance name of the host machine. | keyword | -| cloud.machine.type | Machine type of the host machine. | keyword | -| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | -| cloud.region | Region in which this host, resource, or service is located. | keyword | -| container.id | Unique container id. | keyword | -| container.image.name | Name of the image the container was built on. | keyword | -| container.labels | Image labels. | object | -| container.name | Container name. | keyword | | data_stream.dataset | Data stream dataset name. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| destination.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| destination.as.organization.name | Organization name. | keyword | -| destination.as.organization.name.text | Multi-field of `destination.as.organization.name`. | match_only_text | -| destination.geo.city_name | City name. | keyword | -| destination.geo.continent_name | Name of the continent. | keyword | -| destination.geo.country_iso_code | Country ISO code. | keyword | -| destination.geo.country_name | Country name. | keyword | -| destination.geo.location | Longitude and latitude. | geo_point | -| destination.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| destination.geo.region_iso_code | Region ISO code. | keyword | -| destination.geo.region_name | Region name. | keyword | -| destination.ip | IP address of the destination (IPv4 or IPv6). | ip | -| destination.port | Port of the destination. | long | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | -| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date | | event.dataset | Event dataset | constant_keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.id | Unique ID to describe the event. | keyword | -| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | -| file.mime_type | MIME type should identify the format of the file or stream of bytes using https://www.iana.org/assignments/media-types/media-types.xhtml[IANA official types], where possible. When more than one type is applicable, the most specific type should be used. | keyword | -| file.size | File size in bytes. Only relevant when `file.type` is "file". | long | | geo.city_name | City name. | keyword | | geo.continent_name | Name of the continent. | keyword | | geo.country_iso_code | Country ISO code. | keyword | @@ -886,48 +695,9 @@ An example event for `provisioning` looks as following: | geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | | geo.region_iso_code | Region ISO code. | keyword | | geo.region_name | Region name. | keyword | -| host.architecture | Operating system architecture. | keyword | | host.containerized | If the host is a container. | boolean | -| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | -| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | -| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | -| host.ip | Host ip addresses. | ip | -| host.mac | Host MAC addresses. The notation format from RFC 7042 is suggested: Each octet (that is, 8-bit byte) is represented by two [uppercase] hexadecimal digits giving the value of the octet as an unsigned integer. Successive octets are separated by a hyphen. | keyword | -| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | host.os.build | OS build information. | keyword | | host.os.codename | OS codename, if any. | keyword | -| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | -| host.os.kernel | Operating system kernel version as a raw string. | keyword | -| host.os.name | Operating system name, without the version. | keyword | -| host.os.name.text | Multi-field of `host.os.name`. | match_only_text | -| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | -| host.os.version | Operating system version as a raw string. | keyword | -| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | -| log.level | Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are `warn`, `err`, `i`, `informational`. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| network.community_id | A hash of source and destination IPs and ports, as well as the protocol used in a communication. This is a tool-agnostic standard to identify flows. Learn more at https://github.com/corelight/community-id-spec. | keyword | -| related.ip | All of the IPs seen on your event. | ip | -| related.user | All the user names or other user identifiers seen on the event. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | -| source.geo.location | Longitude and latitude. | geo_point | -| source.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| tags | List of keywords used to tag each event. | keyword | -| user.domain | Name of the directory the user is a member of. For example, an LDAP or Active Directory domain name. | keyword | -| user.full_name | User's full name, if available. | keyword | -| user.full_name.text | Multi-field of `user.full_name`. | match_only_text | -| user.id | Unique identifier of the user. | keyword | -| user.name | Short name or login of the user. | keyword | -| user.name.text | Multi-field of `user.name`. | match_only_text | ### Audit logs @@ -938,33 +708,7 @@ An example event for `auditlogs` looks as following: ```json { - "log": { - "level": "Information" - }, - "cloud": { - "provider": "azure" - }, "@timestamp": "2020-11-02T08:51:36.997Z", - "ecs": { - "version": "1.5.0" - }, - "data_stream": { - "namespace": "default", - "type": "logs", - "dataset": "azure.auditlogs" - }, - "event": { - "duration": 0, - "ingested": "2020-10-30T20:47:48.123859400Z", - "kind": "event", - "action": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", - "dataset": "azure.auditlogs", - "outcome": "success" - }, - "azure.correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", - "azure.resource.id": "/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam", - "azure.resource.provider": "Microsoft.aadiam", - "azure.tenant_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", "azure.auditlogs.category": "AuditLogs", "azure.auditlogs.identity": "Device Registration Service", "azure.auditlogs.operation_name": "Update device", @@ -983,10 +727,40 @@ An example event for `auditlogs` looks as following: "azure.auditlogs.properties.target_resources.0.id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", "azure.auditlogs.properties.target_resources.0.modified_properties.0.new_value": "\"\"", "azure.auditlogs.properties.target_resources.0.type": "Device", - "azure.auditlogs.result_signature": "None" + "azure.auditlogs.result_signature": "None", + "azure.correlation_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "azure.resource.id": "/tenants/8a4de8b5-095c-47d0-a96f-a75130c61d53/providers/Microsoft.aadiam", + "azure.resource.provider": "Microsoft.aadiam", + "azure.tenant_id": "8a4de8b5-095c-47d0-a96f-a75130c61d53", + "cloud": { + "provider": "azure" + }, + "data_stream": { + "dataset": "azure.auditlogs", + "namespace": "default", + "type": "logs" + }, + "ecs": { + "version": "8.11.0" + }, + "event": { + "action": "MICROSOFT.RESOURCES/DEPLOYMENTS/WRITE", + "dataset": "azure.auditlogs", + "duration": 0, + "ingested": "2020-10-30T20:47:48.123859400Z", + "kind": "event", + "outcome": "success" + }, + "log": { + "level": "Information" + } } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -1039,95 +813,18 @@ An example event for `auditlogs` looks as following: | azure.resource.provider | Resource type/namespace | keyword | | azure.subscription_id | Azure subscription ID | keyword | | azure.tenant_id | tenant ID | keyword | -| client.ip | IP address of the client (IPv4 or IPv6). | ip | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword | | cloud.image.id | Image ID for the cloud instance. | keyword | -| cloud.instance.id | Instance ID of the host machine. | keyword | -| cloud.instance.name | Instance name of the host machine. | keyword | -| cloud.machine.type | Machine type of the host machine. | keyword | -| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | -| cloud.region | Region in which this host, resource, or service is located. | keyword | -| container.id | Unique container id. | keyword | -| container.image.name | Name of the image the container was built on. | keyword | -| container.labels | Image labels. | object | -| container.name | Container name. | keyword | | data_stream.dataset | Data stream dataset name. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| destination.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| destination.as.organization.name | Organization name. | keyword | -| destination.as.organization.name.text | Multi-field of `destination.as.organization.name`. | match_only_text | -| destination.geo.city_name | City name. | keyword | -| destination.geo.continent_name | Name of the continent. | keyword | -| destination.geo.country_iso_code | Country ISO code. | keyword | -| destination.geo.country_name | Country name. | keyword | -| destination.geo.location | Longitude and latitude. | geo_point | -| destination.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| destination.geo.region_iso_code | Region ISO code. | keyword | -| destination.geo.region_name | Region name. | keyword | -| destination.ip | IP address of the destination (IPv4 or IPv6). | ip | -| destination.port | Port of the destination. | long | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | -| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date | | event.dataset | Event dataset | constant_keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.id | Unique ID to describe the event. | keyword | -| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | -| file.mime_type | MIME type should identify the format of the file or stream of bytes using https://www.iana.org/assignments/media-types/media-types.xhtml[IANA official types], where possible. When more than one type is applicable, the most specific type should be used. | keyword | -| file.size | File size in bytes. Only relevant when `file.type` is "file". | long | | geo.city_name | City name. | keyword | | geo.continent_name | Name of the continent. | keyword | | geo.country_iso_code | Country ISO code. | keyword | | geo.country_name | Country name. | keyword | | geo.location | Longitude and latitude. | geo_point | -| host.architecture | Operating system architecture. | keyword | | host.containerized | If the host is a container. | boolean | -| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | -| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | -| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | -| host.ip | Host ip addresses. | ip | -| host.mac | Host MAC addresses. The notation format from RFC 7042 is suggested: Each octet (that is, 8-bit byte) is represented by two [uppercase] hexadecimal digits giving the value of the octet as an unsigned integer. Successive octets are separated by a hyphen. | keyword | -| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | host.os.build | OS build information. | keyword | | host.os.codename | OS codename, if any. | keyword | -| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | -| host.os.kernel | Operating system kernel version as a raw string. | keyword | -| host.os.name | Operating system name, without the version. | keyword | -| host.os.name.text | Multi-field of `host.os.name`. | match_only_text | -| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | -| host.os.version | Operating system version as a raw string. | keyword | -| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | -| log.level | Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are `warn`, `err`, `i`, `informational`. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| network.community_id | A hash of source and destination IPs and ports, as well as the protocol used in a communication. This is a tool-agnostic standard to identify flows. Learn more at https://github.com/corelight/community-id-spec. | keyword | -| related.ip | All of the IPs seen on your event. | ip | -| related.user | All the user names or other user identifiers seen on the event. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | -| source.geo.location | Longitude and latitude. | geo_point | -| source.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| tags | List of keywords used to tag each event. | keyword | -| user.domain | Name of the directory the user is a member of. For example, an LDAP or Active Directory domain name. | keyword | -| user.full_name | User's full name, if available. | keyword | -| user.full_name.text | Multi-field of `user.full_name`. | match_only_text | -| user.id | Unique identifier of the user. | keyword | -| user.name | Short name or login of the user. | keyword | -| user.name.text | Multi-field of `user.name`. | match_only_text | diff --git a/packages/azure/docs/application_gateway.md b/packages/azure/docs/application_gateway.md index a3aa19d4cb8..13e2d7725eb 100644 --- a/packages/azure/docs/application_gateway.md +++ b/packages/azure/docs/application_gateway.md @@ -75,17 +75,17 @@ An example event for `application_gateway` looks as following: { "@timestamp": "2017-04-26T19:27:38.000Z", "azure": { + "application_gateway": { + "instance_id": "ApplicationGatewayRole_IN_0", + "operation_name": "ApplicationGatewayAccess" + }, "resource": { "group": "PEERINGTEST", "id": "/SUBSCRIPTIONS/23103928-B2CF-472A-8CDB-0146E2849129/RESOURCEGROUPS/PEERINGTEST/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/Application-Gateway-Name", "name": "Application-Gateway-Name", "provider": "MICROSOFT.NETWORK/APPLICATIONGATEWAYS" }, - "subscription_id": "23103928-B2CF-472A-8CDB-0146E2849129", - "application_gateway": { - "instance_id": "ApplicationGatewayRole_IN_0", - "operation_name": "ApplicationGatewayAccess" - } + "subscription_id": "23103928-B2CF-472A-8CDB-0146E2849129" }, "cloud": { "account": { @@ -99,14 +99,14 @@ An example event for `application_gateway` looks as following: "domain": "www.contoso.com" }, "ecs": { - "version": "8.5.0" + "version": "8.11.0" }, "event": { "category": [ "network" ], "kind": "event", - "original": "{\"resourceId\":\"/SUBSCRIPTIONS/23103928-B2CF-472A-8CDB-0146E2849129/RESOURCEGROUPS/PEERINGTEST/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/Application-Gateway-Name\",\"operationName\":\"ApplicationGatewayAccess\",\"timestamp\":\"2017-04-26T19:27:38Z\",\"category\":\"ApplicationGatewayAccessLog\",\"properties\":{\"instanceId\":\"ApplicationGatewayRole_IN_0\",\"clientIP\":\"67.43.156.7\",\"clientPort\":46886,\"httpMethod\":\"GET\",\"requestUri\":\"/phpmyadmin/scripts/setup.php\",\"requestQuery\":\"X-AzureApplicationGateway-CACHE-HIT=0\u0026SERVER-ROUTED=10.4.0.4\u0026X-AzureApplicationGateway-LOG-ID=874f1f0f-6807-41c9-b7bc-f3cfa74aa0b1\u0026SERVER-STATUS=404\",\"userAgent\":\"-\",\"httpStatus\":404,\"httpVersion\":\"HTTP/1.0\",\"receivedBytes\":65,\"sentBytes\":553,\"timeTaken\":205,\"sslEnabled\":\"off\",\"host\":\"www.contoso.com\",\"originalHost\":\"www.contoso.com\"}}", + "original": "{\"resourceId\":\"/SUBSCRIPTIONS/23103928-B2CF-472A-8CDB-0146E2849129/RESOURCEGROUPS/PEERINGTEST/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/Application-Gateway-Name\",\"operationName\":\"ApplicationGatewayAccess\",\"timestamp\":\"2017-04-26T19:27:38Z\",\"category\":\"ApplicationGatewayAccessLog\",\"properties\":{\"instanceId\":\"ApplicationGatewayRole_IN_0\",\"clientIP\":\"67.43.156.7\",\"clientPort\":46886,\"httpMethod\":\"GET\",\"requestUri\":\"/phpmyadmin/scripts/setup.php\",\"requestQuery\":\"X-AzureApplicationGateway-CACHE-HIT=0&SERVER-ROUTED=10.4.0.4&X-AzureApplicationGateway-LOG-ID=874f1f0f-6807-41c9-b7bc-f3cfa74aa0b1&SERVER-STATUS=404\",\"userAgent\":\"-\",\"httpStatus\":404,\"httpVersion\":\"HTTP/1.0\",\"receivedBytes\":65,\"sentBytes\":553,\"timeTaken\":205,\"sslEnabled\":\"off\",\"host\":\"www.contoso.com\",\"originalHost\":\"www.contoso.com\"}}", "type": [ "connection" ] @@ -162,11 +162,15 @@ An example event for `application_gateway` looks as following: "url": { "domain": "www.contoso.com", "path": "/phpmyadmin/scripts/setup.php", - "query": "X-AzureApplicationGateway-CACHE-HIT=0\u0026SERVER-ROUTED=10.4.0.4\u0026X-AzureApplicationGateway-LOG-ID=874f1f0f-6807-41c9-b7bc-f3cfa74aa0b1\u0026SERVER-STATUS=404" + "query": "X-AzureApplicationGateway-CACHE-HIT=0&SERVER-ROUTED=10.4.0.4&X-AzureApplicationGateway-LOG-ID=874f1f0f-6807-41c9-b7bc-f3cfa74aa0b1&SERVER-STATUS=404" } } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -189,59 +193,9 @@ An example event for `application_gateway` looks as following: | azure.resource.provider | Resource type/namespace | keyword | | azure.subscription_id | Azure subscription ID | keyword | | azure.tenant_id | tenant ID | keyword | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | | data_stream.dataset | Data stream dataset. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| destination.bytes | Bytes sent from the destination to the source. | long | -| destination.domain | The domain name of the destination system. This value may be a host name, a fully qualified domain name, or another host naming format. The value may derive from the original event or be added from enrichment. | keyword | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | | event.dataset | Event dataset | constant_keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.original | Raw text message of entire event. Used to demonstrate log integrity or where the full log message (before splitting it up in multiple parts) may be required, e.g. for reindex. This field is not indexed and doc_values are disabled. It cannot be searched, but it can be retrieved from `_source`. If users wish to override this and index this field, please see `Field data types` in the `Elasticsearch Reference`. | keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | -| http.request.method | HTTP request method. The value should retain its casing from the original event. For example, `GET`, `get`, and `GeT` are all considered valid values for this field. | keyword | -| http.response.status_code | HTTP response status code. | long | -| http.version | HTTP version. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| network.bytes | Total bytes transferred in both directions. If `source.bytes` and `destination.bytes` are known, `network.bytes` is their sum. | long | -| network.protocol | In the OSI Model this would be the Application Layer protocol. For example, `http`, `dns`, or `ssh`. The field value must be normalized to lowercase for querying. | keyword | -| observer.name | Custom name of the observer. This is a name that can be given to an observer. This can be helpful for example if multiple firewalls of the same model are used in an organization. If no custom name is needed, the field can be left empty. | keyword | -| observer.product | The product name of the observer. | keyword | -| observer.type | The type of the observer the data is coming from. There is no predefined list of observer types. Some examples are `forwarder`, `firewall`, `ids`, `ips`, `proxy`, `poller`, `sensor`, `APM server`. | keyword | -| observer.vendor | Vendor name of the observer. | keyword | -| related.hosts | All hostnames or other host identifiers seen on your event. Example identifiers include FQDNs, domain names, workstation names, or aliases. | keyword | -| related.ip | All of the IPs seen on your event. | ip | -| rule.category | A categorization value keyword used by the entity using the rule for detection of this event. | keyword | -| rule.description | The description of the rule generating the event. | keyword | -| rule.id | A rule ID that is unique within the scope of an agent, observer, or other entity using the rule for detection of this event. | keyword | -| rule.ruleset | Name of the ruleset, policy, group, or parent category in which the rule used to generate this event is a member. | keyword | -| rule.version | The version / revision of the rule being used for analysis. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.bytes | Bytes sent from the source to the destination. | long | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | -| source.geo.location | Longitude and latitude. | geo_point | -| source.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| source.port | Port of the source. | long | -| tags | List of keywords used to tag each event. | keyword | -| url.domain | Domain of the url, such as "www.elastic.co". In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the `domain` field. If the URL contains a literal IPv6 address enclosed by `[` and `]` (IETF RFC 2732), the `[` and `]` characters should also be captured in the `domain` field. | keyword | -| url.original | Unmodified original url as seen in the event source. Note that in network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. | wildcard | -| url.original.text | Multi-field of `url.original`. | match_only_text | -| url.path | Path of the request, such as "/search". | wildcard | -| url.query | The query field describes the query string of the request, such as "q=elasticsearch". The `?` is excluded from the query string. If a URL contains no `?`, there is no query field. If there is a `?` but no query, the query field exists with an empty string. The `exists` query can be used to differentiate between the two cases. | keyword | diff --git a/packages/azure/docs/eventhub.md b/packages/azure/docs/eventhub.md index b4563e956ac..b7c78808c42 100644 --- a/packages/azure/docs/eventhub.md +++ b/packages/azure/docs/eventhub.md @@ -70,73 +70,77 @@ An example event for `eventhub` looks as following: ```json { + "@timestamp": "2021-10-18T12:31:17.027Z", "agent": { + "ephemeral_id": "42a183d5-df19-4008-8776-d9765bc01d50", "hostname": "docker-fleet-agent", - "name": "docker-fleet-agent", "id": "b659ebed-5338-45f3-9762-1bcf2c1ad0e1", + "name": "docker-fleet-agent", "type": "filebeat", - "ephemeral_id": "42a183d5-df19-4008-8776-d9765bc01d50", "version": "7.15.0" }, - "elastic_agent": { - "id": "b659ebed-5338-45f3-9762-1bcf2c1ad0e1", - "version": "7.15.0", - "snapshot": true - }, - "message": "{\\\"ReleaseVersion\\\":\\\"6.2021.39.11+d1f0e29.release_2021w39_az\\\",\\\"RoleLocation\\\":\\\"North Europe\\\",\\\"callerIpAddress\\\":\\\"77.170.179.229\\\",\\\"category\\\":\\\"Administrative\\\",\\\"correlationId\\\":\\\"a75a0752-ebbb-42bf-831f-43788a8c1193\\\",\\\"durationMs\\\":\\\"0\\\",\\\"identity\\\":{\\\"authorization\\\":{\\\"action\\\":\\\"Microsoft.ServiceBus\\/namespaces\\/delete\\\",\\\"evidence\\\":{\\\"principalId\\\":\\\"68b1adf93eb744b08eb8ce96522a08d3\\\",\\\"principalType\\\":\\\"User\\\",\\\"role\\\":\\\"Owner\\\",\\\"roleAssignmentId\\\":\\\"7f06f09dd6764b44930adbec3f10e92b\\\",\\\"roleAssignmentScope\\\":\\\"\\/providers\\/Microsoft.Management\\/managementGroups\\/5341238b-665c-4eb4-b259-b250371ae430\\\",\\\"roleDefinitionId\\\":\\\"8e3af657a8ff443ca75c2fe8c4bcb635\\\"},\\\"scope\\\":\\\"\\/subscriptions\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\/resourcegroups\\/obs-test\\/providers\\/Microsoft.ServiceBus\\/namespaces\\/testobs\\\"},\\\"claims\\\":{\\\"aio\\\":\\\"ATQAy\\/8TAAAAgFUjNWoJWKgHlAK2AL92UMeUsb6VD5zck\\/myDZPucX5V3Gc8SDMg5vTV28NUy5N7\\\",\\\"appid\\\":\\\"c44b4083-3bb0-49c1-b47d-974e53cbdf3c\\\",\\\"appidacr\\\":\\\"2\\\",\\\"aud\\\":\\\"https:\\/\\/management.core.windows.net\\/\\\",\\\"exp\\\":\\\"1634290798\\\",\\\"groups\\\":\\\"644c6686-9ef1-4b69-9410-107664a9e1f0,9ed1993c-ce9c-4915-a04d-58c6f5f7ee12,a953f548-26ab-47b2-be7d-65586b7bcc2a\\\",\\\"http:\\/\\/schemas.microsoft.com\\/2012\\/01\\/devicecontext\\/claims\\/identifier\\\":\\\"1060004c-63dc-465b-b868-ec6547176c58\\\",\\\"http:\\/\\/schemas.microsoft.com\\/claims\\/authnclassreference\\\":\\\"1\\\",\\\"http:\\/\\/schemas.microsoft.com\\/claims\\/authnmethodsreferences\\\":\\\"pwd,rsa\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/objectidentifier\\\":\\\"68b1adf9-3eb7-44b0-8eb8-ce96522a08d3\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/scope\\\":\\\"user_impersonation\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/tenantid\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/givenname\\\":\\\"Mariana\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/name\\\":\\\"mariana@elastic.co\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/nameidentifier\\\":\\\"a9L2WR3XZN5ANzAqwLx_4aamU49JG6kqaE5JZkXdeNs\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/surname\\\":\\\"Dima\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/upn\\\":\\\"mariana@elastic.co\\\",\\\"iat\\\":\\\"1634286898\\\",\\\"ipaddr\\\":\\\"77.170.179.229\\\",\\\"iss\\\":\\\"https:\\/\\/sts.windows.net\\/4fa94b7d-a743-486f-abcc-6c276c44cf4b\\/\\\",\\\"name\\\":\\\"Mariana Dima\\\",\\\"nbf\\\":\\\"1634286898\\\",\\\"puid\\\":\\\"1003200045B17AD4\\\",\\\"rh\\\":\\\"0.AVEAfUupT0Onb0irzGwnbETPS4NAS8SwO8FJtH2XTlPL3zxRAA8.\\\",\\\"uti\\\":\\\"yUcYeZwj9EWeA-rTCtRwAA\\\",\\\"ver\\\":\\\"1.0\\\",\\\"wids\\\":\\\"5d6b6bb7-de71-4623-b4af-96380a352509\\\",\\\"xms_tcdt\\\":\\\"1469565974\\\"}},\\\"level\\\":\\\"Information\\\",\\\"operationName\\\":\\\"MICROSOFT.SERVICEBUS\\/NAMESPACES\\/DELETE\\\",\\\"properties\\\":{\\\"entity\\\":\\\"\\/subscriptions\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\/resourcegroups\\/obs-test\\/providers\\/Microsoft.ServiceBus\\/namespaces\\/testobs\\\",\\\"eventCategory\\\":\\\"Administrative\\\",\\\"hierarchy\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\/5341238b-665c-4eb4-b259-b250371ae430\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\\",\\\"message\\\":\\\"Microsoft.ServiceBus\\/namespaces\\/delete\\\"},\\\"resourceId\\\":\\\"\\/SUBSCRIPTIONS\\/7657426D-C4C3-44AC-88A2-3B2CD59E6DBA\\/RESOURCEGROUPS\\/OBS-TEST\\/PROVIDERS\\/MICROSOFT.SERVICEBUS\\/NAMESPACES\\/TESTOBS\\\",\\\"resultSignature\\\":\\\"Started.\\\",\\\"resultType\\\":\\\"Start\\\",\\\"tenantId\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\\",\\\"time\\\":\\\"2021-10-15T09:08:29.9268177Z\\\"}\\r\\n", "azure-eventhub": { - "sequence_number": 1215, "consumer_group": "$Default", - "offset": 274878093752, + "enqueued_time": "2021-10-15T09:14:25.419Z", "eventhub": "insights-activity-logs", - "enqueued_time": "2021-10-15T09:14:25.419Z" + "offset": 274878093752, + "sequence_number": 1215 }, - "tags": [ - "azure-eventhub" - ], - "input": { - "type": "azure-eventhub" + "data_stream": { + "dataset": "azure.eventhub", + "namespace": "default", + "type": "logs" }, - "@timestamp": "2021-10-18T12:31:17.027Z", "ecs": { - "version": "1.12.0" + "version": "8.11.0" }, - "data_stream": { - "namespace": "default", - "type": "logs", - "dataset": "azure.eventhub" + "elastic_agent": { + "id": "b659ebed-5338-45f3-9762-1bcf2c1ad0e1", + "snapshot": true, + "version": "7.15.0" + }, + "event": { + "agent_id_status": "verified", + "dataset": "azure.eventhub", + "ingested": "2021-10-18T12:31:17Z", + "kind": "event" }, "host": { - "hostname": "docker-fleet-agent", - "os": { - "kernel": "4.19.128-microsoft-standard", - "codename": "Core", - "name": "CentOS Linux", - "family": "redhat", - "type": "linux", - "version": "7 (Core)", - "platform": "centos" - }, + "architecture": "x86_64", "containerized": true, + "hostname": "docker-fleet-agent", + "id": "6505f7ca36739e7eb909bdb52bf3ec18", "ip": [ "172.27.0.7" ], - "name": "docker-fleet-agent", - "id": "6505f7ca36739e7eb909bdb52bf3ec18", "mac": [ - "02:42:ac:1b:00:07" + "02-42-AC-14-00-07" ], - "architecture": "x86_64" + "name": "docker-fleet-agent", + "os": { + "codename": "Core", + "family": "redhat", + "kernel": "4.19.128-microsoft-standard", + "name": "CentOS Linux", + "platform": "centos", + "type": "linux", + "version": "7 (Core)" + } }, - "event": { - "agent_id_status": "verified", - "ingested": "2021-10-18T12:31:17Z", - "kind": "event", - "dataset": "azure.eventhub" - } + "input": { + "type": "azure-eventhub" + }, + "message": "{\\\"ReleaseVersion\\\":\\\"6.2021.39.11+d1f0e29.release_2021w39_az\\\",\\\"RoleLocation\\\":\\\"North Europe\\\",\\\"callerIpAddress\\\":\\\"77.170.179.229\\\",\\\"category\\\":\\\"Administrative\\\",\\\"correlationId\\\":\\\"a75a0752-ebbb-42bf-831f-43788a8c1193\\\",\\\"durationMs\\\":\\\"0\\\",\\\"identity\\\":{\\\"authorization\\\":{\\\"action\\\":\\\"Microsoft.ServiceBus\\/namespaces\\/delete\\\",\\\"evidence\\\":{\\\"principalId\\\":\\\"68b1adf93eb744b08eb8ce96522a08d3\\\",\\\"principalType\\\":\\\"User\\\",\\\"role\\\":\\\"Owner\\\",\\\"roleAssignmentId\\\":\\\"7f06f09dd6764b44930adbec3f10e92b\\\",\\\"roleAssignmentScope\\\":\\\"\\/providers\\/Microsoft.Management\\/managementGroups\\/5341238b-665c-4eb4-b259-b250371ae430\\\",\\\"roleDefinitionId\\\":\\\"8e3af657a8ff443ca75c2fe8c4bcb635\\\"},\\\"scope\\\":\\\"\\/subscriptions\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\/resourcegroups\\/obs-test\\/providers\\/Microsoft.ServiceBus\\/namespaces\\/testobs\\\"},\\\"claims\\\":{\\\"aio\\\":\\\"ATQAy\\/8TAAAAgFUjNWoJWKgHlAK2AL92UMeUsb6VD5zck\\/myDZPucX5V3Gc8SDMg5vTV28NUy5N7\\\",\\\"appid\\\":\\\"c44b4083-3bb0-49c1-b47d-974e53cbdf3c\\\",\\\"appidacr\\\":\\\"2\\\",\\\"aud\\\":\\\"https:\\/\\/management.core.windows.net\\/\\\",\\\"exp\\\":\\\"1634290798\\\",\\\"groups\\\":\\\"644c6686-9ef1-4b69-9410-107664a9e1f0,9ed1993c-ce9c-4915-a04d-58c6f5f7ee12,a953f548-26ab-47b2-be7d-65586b7bcc2a\\\",\\\"http:\\/\\/schemas.microsoft.com\\/2012\\/01\\/devicecontext\\/claims\\/identifier\\\":\\\"1060004c-63dc-465b-b868-ec6547176c58\\\",\\\"http:\\/\\/schemas.microsoft.com\\/claims\\/authnclassreference\\\":\\\"1\\\",\\\"http:\\/\\/schemas.microsoft.com\\/claims\\/authnmethodsreferences\\\":\\\"pwd,rsa\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/objectidentifier\\\":\\\"68b1adf9-3eb7-44b0-8eb8-ce96522a08d3\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/scope\\\":\\\"user_impersonation\\\",\\\"http:\\/\\/schemas.microsoft.com\\/identity\\/claims\\/tenantid\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/givenname\\\":\\\"Mariana\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/name\\\":\\\"mariana@elastic.co\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/nameidentifier\\\":\\\"a9L2WR3XZN5ANzAqwLx_4aamU49JG6kqaE5JZkXdeNs\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/surname\\\":\\\"Dima\\\",\\\"http:\\/\\/schemas.xmlsoap.org\\/ws\\/2005\\/05\\/identity\\/claims\\/upn\\\":\\\"mariana@elastic.co\\\",\\\"iat\\\":\\\"1634286898\\\",\\\"ipaddr\\\":\\\"77.170.179.229\\\",\\\"iss\\\":\\\"https:\\/\\/sts.windows.net\\/4fa94b7d-a743-486f-abcc-6c276c44cf4b\\/\\\",\\\"name\\\":\\\"Mariana Dima\\\",\\\"nbf\\\":\\\"1634286898\\\",\\\"puid\\\":\\\"1003200045B17AD4\\\",\\\"rh\\\":\\\"0.AVEAfUupT0Onb0irzGwnbETPS4NAS8SwO8FJtH2XTlPL3zxRAA8.\\\",\\\"uti\\\":\\\"yUcYeZwj9EWeA-rTCtRwAA\\\",\\\"ver\\\":\\\"1.0\\\",\\\"wids\\\":\\\"5d6b6bb7-de71-4623-b4af-96380a352509\\\",\\\"xms_tcdt\\\":\\\"1469565974\\\"}},\\\"level\\\":\\\"Information\\\",\\\"operationName\\\":\\\"MICROSOFT.SERVICEBUS\\/NAMESPACES\\/DELETE\\\",\\\"properties\\\":{\\\"entity\\\":\\\"\\/subscriptions\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\/resourcegroups\\/obs-test\\/providers\\/Microsoft.ServiceBus\\/namespaces\\/testobs\\\",\\\"eventCategory\\\":\\\"Administrative\\\",\\\"hierarchy\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\/5341238b-665c-4eb4-b259-b250371ae430\\/7657426d-c4c3-44ac-88a2-3b2cd59e6dba\\\",\\\"message\\\":\\\"Microsoft.ServiceBus\\/namespaces\\/delete\\\"},\\\"resourceId\\\":\\\"\\/SUBSCRIPTIONS\\/7657426D-C4C3-44AC-88A2-3B2CD59E6DBA\\/RESOURCEGROUPS\\/OBS-TEST\\/PROVIDERS\\/MICROSOFT.SERVICEBUS\\/NAMESPACES\\/TESTOBS\\\",\\\"resultSignature\\\":\\\"Started.\\\",\\\"resultType\\\":\\\"Start\\\",\\\"tenantId\\\":\\\"4fa94b7d-a743-486f-abcc-6c276c44cf4b\\\",\\\"time\\\":\\\"2021-10-15T09:08:29.9268177Z\\\"}\\r\\n", + "tags": [ + "azure-eventhub" + ] } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -157,96 +161,18 @@ An example event for `eventhub` looks as following: | azure.resource.provider | Resource type/namespace | keyword | | azure.subscription_id | Azure subscription ID | keyword | | azure.tenant_id | tenant ID | keyword | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword | | cloud.image.id | Image ID for the cloud instance. | keyword | -| cloud.instance.id | Instance ID of the host machine. | keyword | -| cloud.instance.name | Instance name of the host machine. | keyword | -| cloud.machine.type | Machine type of the host machine. | keyword | -| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | -| cloud.region | Region in which this host, resource, or service is located. | keyword | -| container.id | Unique container id. | keyword | -| container.image.name | Name of the image the container was built on. | keyword | -| container.labels | Image labels. | object | -| container.name | Container name. | keyword | | data_stream.dataset | Data stream dataset name. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| destination.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| destination.as.organization.name | Organization name. | keyword | -| destination.as.organization.name.text | Multi-field of `destination.as.organization.name`. | match_only_text | -| destination.geo.city_name | City name. | keyword | -| destination.geo.continent_name | Name of the continent. | keyword | -| destination.geo.country_iso_code | Country ISO code. | keyword | -| destination.geo.country_name | Country name. | keyword | -| destination.geo.location | Longitude and latitude. | geo_point | -| destination.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| destination.geo.region_iso_code | Region ISO code. | keyword | -| destination.geo.region_name | Region name. | keyword | -| destination.ip | IP address of the destination (IPv4 or IPv6). | ip | -| destination.port | Port of the destination. | long | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | -| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date | -| event.dataset | Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name. | keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.id | Unique ID to describe the event. | keyword | -| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | -| file.mime_type | MIME type should identify the format of the file or stream of bytes using https://www.iana.org/assignments/media-types/media-types.xhtml[IANA official types], where possible. When more than one type is applicable, the most specific type should be used. | keyword | -| file.size | File size in bytes. Only relevant when `file.type` is "file". | long | | geo.city_name | City name. | keyword | | geo.continent_name | Name of the continent. | keyword | | geo.country_iso_code | Country ISO code. | keyword | | geo.country_name | Country name. | keyword | | geo.location | Longitude and latitude. | geo_point | -| host.architecture | Operating system architecture. | keyword | | host.containerized | If the host is a container. | boolean | -| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | -| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | -| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | -| host.ip | Host ip addresses. | ip | -| host.mac | Host MAC addresses. The notation format from RFC 7042 is suggested: Each octet (that is, 8-bit byte) is represented by two [uppercase] hexadecimal digits giving the value of the octet as an unsigned integer. Successive octets are separated by a hyphen. | keyword | -| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | host.os.build | OS build information. | keyword | | host.os.codename | OS codename, if any. | keyword | -| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | -| host.os.kernel | Operating system kernel version as a raw string. | keyword | -| host.os.name | Operating system name, without the version. | keyword | -| host.os.name.text | Multi-field of `host.os.name`. | match_only_text | -| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | -| host.os.version | Operating system version as a raw string. | keyword | -| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | | input.type | Input type | keyword | -| log.level | Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are `warn`, `err`, `i`, `informational`. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| network.community_id | A hash of source and destination IPs and ports, as well as the protocol used in a communication. This is a tool-agnostic standard to identify flows. Learn more at https://github.com/corelight/community-id-spec. | keyword | -| related.ip | All of the IPs seen on your event. | ip | -| related.user | All the user names or other user identifiers seen on the event. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | -| source.geo.location | Longitude and latitude. | geo_point | -| source.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| source.port | Port of the source. | long | -| tags | List of keywords used to tag each event. | keyword | -| user.domain | Name of the directory the user is a member of. For example, an LDAP or Active Directory domain name. | keyword | -| user.full_name | User's full name, if available. | keyword | -| user.full_name.text | Multi-field of `user.full_name`. | match_only_text | -| user.id | Unique identifier of the user. | keyword | -| user.name | Short name or login of the user. | keyword | -| user.name.text | Multi-field of `user.name`. | match_only_text | diff --git a/packages/azure/docs/firewall_logs.md b/packages/azure/docs/firewall_logs.md index 890e0e174a9..75e70f6b3f0 100644 --- a/packages/azure/docs/firewall_logs.md +++ b/packages/azure/docs/firewall_logs.md @@ -123,7 +123,7 @@ An example event for `firewall` looks as following: "ip": "89.160.20.156" }, "ecs": { - "version": "8.3.0" + "version": "8.11.0" }, "event": { "category": [ @@ -161,6 +161,10 @@ An example event for `firewall` looks as following: } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -186,45 +190,12 @@ An example event for `firewall` looks as following: | azure.resource.provider | Resource type/namespace | keyword | | azure.subscription_id | Azure subscription ID | keyword | | azure.tenant_id | tenant ID | keyword | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | | data_stream.dataset | Data stream dataset. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| destination.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| destination.as.organization.name | Organization name. | keyword | -| destination.as.organization.name.text | Multi-field of `destination.as.organization.name`. | match_only_text | -| destination.bytes | Bytes sent from the destination to the source. | long | -| destination.domain | The domain name of the destination system. This value may be a host name, a fully qualified domain name, or another host naming format. The value may derive from the original event or be added from enrichment. | keyword | -| destination.geo.city_name | City name. | keyword | -| destination.geo.continent_name | Name of the continent. | keyword | -| destination.geo.country_iso_code | Country ISO code. | keyword | -| destination.geo.country_name | Country name. | keyword | -| destination.geo.location | Longitude and latitude. | geo_point | -| destination.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| destination.geo.region_iso_code | Region ISO code. | keyword | -| destination.geo.region_name | Region name. | keyword | -| destination.ip | IP address of the destination (IPv4 or IPv6). | ip | -| destination.nat.ip | Translated ip of destination based NAT sessions (e.g. internet to private DMZ) Typically used with load balancers, firewalls, or routers. | ip | -| destination.nat.port | Port the source session is translated to by NAT Device. Typically used with load balancers, firewalls, or routers. | long | -| destination.port | Port of the destination. | long | -| dns.header_flags | Array of 2 letter DNS header flags. Expected values are: AA, TC, RD, RA, AD, CD, DO. | keyword | -| dns.question.class | The class of records being queried. | keyword | -| dns.question.name | The name being queried. If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \t, \r, and \n respectively. | keyword | -| dns.question.type | The type of record being queried. | keyword | -| dns.response_code | | | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | -| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date | +| dns.header_flags | Array of 2 letter DNS header flags. | keyword | | event.dataset | Event dataset | constant_keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.id | Unique ID to describe the event. | keyword | -| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | | geo.city_name | City name. | keyword | | geo.continent_name | Name of the continent. | keyword | | geo.country_iso_code | Country ISO code. | keyword | @@ -233,38 +204,4 @@ An example event for `firewall` looks as following: | geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | | geo.region_iso_code | Region ISO code. | keyword | | geo.region_name | Region name. | keyword | -| log.level | Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are `warn`, `err`, `i`, `informational`. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| network.iana_number | IANA Protocol Number (https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). Standardized list of protocols. This aligns well with NetFlow and sFlow related logs which use the IANA Protocol Number. | keyword | -| network.protocol | In the OSI Model this would be the Application Layer protocol. For example, `http`, `dns`, or `ssh`. The field value must be normalized to lowercase for querying. | keyword | -| network.transport | Same as network.iana_number, but instead using the Keyword name of the transport layer (udp, tcp, ipv6-icmp, etc.) The field value must be normalized to lowercase for querying. | keyword | -| observer.name | Custom name of the observer. This is a name that can be given to an observer. This can be helpful for example if multiple firewalls of the same model are used in an organization. If no custom name is needed, the field can be left empty. | keyword | -| observer.product | The product name of the observer. | keyword | -| observer.type | The type of the observer the data is coming from. There is no predefined list of observer types. Some examples are `forwarder`, `firewall`, `ids`, `ips`, `proxy`, `poller`, `sensor`, `APM server`. | keyword | -| observer.vendor | Vendor name of the observer. | keyword | -| related.hosts | All hostnames or other host identifiers seen on your event. Example identifiers include FQDNs, domain names, workstation names, or aliases. | keyword | -| related.ip | All of the IPs seen on your event. | ip | -| related.user | All the user names or other user identifiers seen on the event. | keyword | -| rule.category | A categorization value keyword used by the entity using the rule for detection of this event. | keyword | -| rule.id | A rule ID that is unique within the scope of an agent, observer, or other entity using the rule for detection of this event. | keyword | -| rule.name | The name of the rule or signature generating the event. | keyword | -| rule.ruleset | Name of the ruleset, policy, group, or parent category in which the rule used to generate this event is a member. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.bytes | Bytes sent from the source to the destination. | long | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | -| source.geo.location | Longitude and latitude. | geo_point | -| source.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| source.port | Port of the source. | long | -| tags | List of keywords used to tag each event. | keyword | -| url.original | Unmodified original url as seen in the event source. Note that in network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. | wildcard | -| url.original.text | Multi-field of `url.original`. | match_only_text | diff --git a/packages/azure/docs/graphactivitylogs.md b/packages/azure/docs/graphactivitylogs.md index 08fc03545b8..6eed690dea0 100644 --- a/packages/azure/docs/graphactivitylogs.md +++ b/packages/azure/docs/graphactivitylogs.md @@ -158,7 +158,7 @@ An example event for `graphactivitylogs` looks as following: } }, "ecs": { - "version": "8.0.0" + "version": "8.11.0" }, "event": { "action": "Microsoft Graph Activity", @@ -215,6 +215,10 @@ An example event for `graphactivitylogs` looks as following: } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -253,107 +257,17 @@ An example event for `graphactivitylogs` looks as following: | azure.resource.provider | Resource type/namespace. | keyword | | azure.subscription_id | Azure subscription ID. | keyword | | azure.tenant_id | tenant ID. | keyword | -| client.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| client.as.organization.name | Organization name. | keyword | -| client.as.organization.name.text | Multi-field of `client.as.organization.name`. | match_only_text | -| client.geo.city_name | City name. | keyword | -| client.geo.continent_name | Name of the continent. | keyword | -| client.geo.country_iso_code | Country ISO code. | keyword | -| client.geo.country_name | Country name. | keyword | | client.geo.location.lat | Longitude and latitude. | geo_point | | client.geo.location.lon | Longitude and latitude. | geo_point | -| client.geo.region_iso_code | Region ISO code. | keyword | -| client.geo.region_name | Region name. | keyword | -| client.ip | IP address of the client (IPv4 or IPv6). | ip | -| client.user.id | Unique identifier of the user. | keyword | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword | | cloud.image.id | Image ID for the cloud instance. | keyword | -| cloud.instance.id | Instance ID of the host machine. | keyword | -| cloud.instance.name | Instance name of the host machine. | keyword | -| cloud.machine.type | Machine type of the host machine. | keyword | -| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | -| cloud.region | Region in which this host, resource, or service is located. | keyword | -| cloud.service.name | The cloud service name is intended to distinguish services running on different platforms within a provider, eg AWS EC2 vs Lambda, GCP GCE vs App Engine, Azure VM vs App Server. Examples: app engine, app service, cloud run, fargate, lambda. | keyword | -| container.id | Unique container id. | keyword | -| container.image.name | Name of the image the container was built on. | keyword | -| container.labels | Image labels. | object | -| container.name | Container name. | keyword | | data_stream.dataset | Data stream dataset name. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.geo.region_name | Region name. | keyword | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | -| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date | | event.dataset | Event dataset | constant_keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.id | Unique ID to describe the event. | keyword | -| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | -| host.architecture | Operating system architecture. | keyword | | host.containerized | If the host is a container. | boolean | -| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | -| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | -| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | -| host.mac | Host MAC addresses. The notation format from RFC 7042 is suggested: Each octet (that is, 8-bit byte) is represented by two [uppercase] hexadecimal digits giving the value of the octet as an unsigned integer. Successive octets are separated by a hyphen. | keyword | -| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | host.os.build | OS build information. | keyword | | host.os.codename | OS codename, if any. | keyword | -| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | -| host.os.kernel | Operating system kernel version as a raw string. | keyword | -| host.os.name | Operating system name, without the version. | keyword | -| host.os.name.text | Multi-field of `host.os.name`. | match_only_text | -| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | -| host.os.version | Operating system version as a raw string. | keyword | -| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | -| http.request.id | A unique identifier for each HTTP request to correlate logs between clients and servers in transactions. The id may be contained in a non-standard HTTP header, such as `X-Request-ID` or `X-Correlation-ID`. | keyword | -| http.request.method | HTTP request method. The value should retain its casing from the original event. For example, `GET`, `get`, and `GeT` are all considered valid values for this field. | keyword | -| http.response.bytes | Total size in bytes of the response (body and headers). | long | -| http.response.status_code | HTTP response status code. | long | -| log.level | Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are `warn`, `err`, `i`, `informational`. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| related.ip | All of the IPs seen on your event. | ip | -| related.user | All the user names or other user identifiers seen on the event. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | | source.geo.location.lat | Longitude and latitude. | geo_point | | source.geo.location.lon | Longitude and latitude. | geo_point | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| tags | List of keywords used to tag each event. | keyword | -| url.domain | Domain of the url, such as "www.elastic.co". In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the `domain` field. If the URL contains a literal IPv6 address enclosed by `[` and `]` (IETF RFC 2732), the `[` and `]` characters should also be captured in the `domain` field. | keyword | -| url.extension | The field contains the file extension from the original request url, excluding the leading dot. The file extension is only set if it exists, as not every url has a file extension. The leading period must not be included. For example, the value must be "png", not ".png". Note that when the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz"). | keyword | -| url.full | If full URLs are important to your use case, they should be stored in `url.full`, whether this field is reconstructed or present in the event source. | wildcard | -| url.full.text | Multi-field of `url.full`. | match_only_text | -| url.original | Unmodified original url as seen in the event source. Note that in network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. | wildcard | -| url.original.text | Multi-field of `url.original`. | match_only_text | -| url.password | Password of the request. | keyword | -| url.path | Path of the request, such as "/search". | wildcard | -| url.port | Port of the request, such as 443. | long | -| url.query | The query field describes the query string of the request, such as "q=elasticsearch". The `?` is excluded from the query string. If a URL contains no `?`, there is no query field. If there is a `?` but no query, the query field exists with an empty string. The `exists` query can be used to differentiate between the two cases. | keyword | -| url.scheme | Scheme of the request, such as "https". Note: The `:` is not part of the scheme. | keyword | -| url.username | Username of the request. | keyword | -| user.id | Unique identifier of the user. | keyword | -| user_agent.device.name | Name of the device. | keyword | -| user_agent.name | Name of the user agent. | keyword | -| user_agent.original | Unparsed user_agent string. | keyword | -| user_agent.original.text | Multi-field of `user_agent.original`. | match_only_text | -| user_agent.os.full | Operating system name, including the version or code name. | keyword | -| user_agent.os.full.text | Multi-field of `user_agent.os.full`. | match_only_text | -| user_agent.os.name | Operating system name, without the version. | keyword | -| user_agent.os.name.text | Multi-field of `user_agent.os.name`. | match_only_text | -| user_agent.os.version | Operating system version as a raw string. | keyword | -| user_agent.version | Version of the user agent. | keyword | diff --git a/packages/azure/docs/platformlogs.md b/packages/azure/docs/platformlogs.md index e806d6d244f..15238347b12 100644 --- a/packages/azure/docs/platformlogs.md +++ b/packages/azure/docs/platformlogs.md @@ -66,69 +66,73 @@ An example event for `platformlogs` looks as following: ```json { + "@timestamp": "2020-11-05T14:07:32.000Z", "agent": { + "ephemeral_id": "d3c4d56c-e7c7-489e-9d25-683452d16ec9", "hostname": "DESKTOP-RFOOE09", - "name": "DESKTOP-RFOOE09", "id": "c1118415-bcb7-4cf9-b64d-a6c6e8ebcfac", + "name": "DESKTOP-RFOOE09", "type": "filebeat", - "ephemeral_id": "d3c4d56c-e7c7-489e-9d25-683452d16ec9", "version": "7.10.0" }, - "elastic_agent": { - "id": "02f4e39d-8a1b-4506-a531-b45d0f492ee7", - "version": "7.10.0", - "snapshot": false - }, - "cloud": { - "provider": "azure", - "region": "West Europe" - }, - "@timestamp": "2020-11-05T14:07:32.000Z", - "ecs": { - "version": "1.5.0" - }, - "data_stream": { - "namespace": "default", - "type": "logs", - "dataset": "azure.platformlogs" - }, - "host": { - "name": "DESKTOP-RFOOE09" - }, - "event": { - "ingested": "2020-11-01T12:02:34.237205200Z", - "kind": "event", - "action": "Retreive Namespace", - "dataset": "azure.platformlogs", - "outcome": "succeeded" - }, "azure": { - "subscription_id": "7657426D-C4C3-44AC-88A2-3B2CD59E6DBA", "platformlogs": { - "Caller": "Portal", "ActivityId": "5890c6fc-fc6b-47cd-971a-2366a1641d99", - "EventTimeString": "11/5/2020 2:07:32 PM +00:00", + "Caller": "Portal", "Environment": "PROD", + "EventTimeString": "11/5/2020 2:07:32 PM +00:00", + "ScaleUnit": "PROD-AM3-AZ501", "category": "OperationalLogs", "event_category": "Administrative", - "ScaleUnit": "PROD-AM3-AZ501", "properties": { + "Namespace": "obstesteventhubs", "SubscriptionId": "7657426d-c4c3-44ac-88a2-3b2cd59e6dba", "TrackingId": "5890c6fc-fc6b-47cd-971a-2366a1641d99_M8CH3_M8CH3_G8S3", - "Namespace": "obstesteventhubs", - "Via": "https://obstesteventhubs.servicebus.windows.net/$Resources/eventhubs?api-version=2017-04\u0026$skip=0\u0026$top=100" + "Via": "https://obstesteventhubs.servicebus.windows.net/$Resources/eventhubs?api-version=2017-04&$skip=0&$top=100" } }, "resource": { - "provider": "MICROSOFT.EVENTHUB/NAMESPACES", - "name": "OBSTESTEVENTHUBS", + "group": "OBS-TEST", "id": "/SUBSCRIPTIONS/7657426D-C4C3-44AC-88A2-3B2CD59E6DBA/RESOURCEGROUPS/OBS-TEST/PROVIDERS/MICROSOFT.EVENTHUB/NAMESPACES/OBSTESTEVENTHUBS", - "group": "OBS-TEST" - } + "name": "OBSTESTEVENTHUBS", + "provider": "MICROSOFT.EVENTHUB/NAMESPACES" + }, + "subscription_id": "7657426D-C4C3-44AC-88A2-3B2CD59E6DBA" + }, + "cloud": { + "provider": "azure", + "region": "West Europe" + }, + "data_stream": { + "dataset": "azure.platformlogs", + "namespace": "default", + "type": "logs" + }, + "ecs": { + "version": "8.11.0" + }, + "elastic_agent": { + "id": "02f4e39d-8a1b-4506-a531-b45d0f492ee7", + "snapshot": false, + "version": "7.10.0" + }, + "event": { + "action": "Retreive Namespace", + "dataset": "azure.platformlogs", + "ingested": "2020-11-01T12:02:34.237205200Z", + "kind": "event", + "outcome": "success" + }, + "host": { + "name": "DESKTOP-RFOOE09" } } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -159,96 +163,19 @@ An example event for `platformlogs` looks as following: | azure.resource.provider | Resource type/namespace | keyword | | azure.subscription_id | Azure subscription ID | keyword | | azure.tenant_id | tenant ID | keyword | -| client.ip | IP address of the client (IPv4 or IPv6). | ip | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword | | cloud.image.id | Image ID for the cloud instance. | keyword | -| cloud.instance.id | Instance ID of the host machine. | keyword | -| cloud.instance.name | Instance name of the host machine. | keyword | -| cloud.machine.type | Machine type of the host machine. | keyword | -| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | -| cloud.region | Region in which this host, resource, or service is located. | keyword | -| container.id | Unique container id. | keyword | -| container.image.name | Name of the image the container was built on. | keyword | -| container.labels | Image labels. | object | -| container.name | Container name. | keyword | | data_stream.dataset | Data stream dataset name. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| destination.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| destination.as.organization.name | Organization name. | keyword | -| destination.as.organization.name.text | Multi-field of `destination.as.organization.name`. | match_only_text | -| destination.geo.city_name | City name. | keyword | -| destination.geo.continent_name | Name of the continent. | keyword | -| destination.geo.country_iso_code | Country ISO code. | keyword | -| destination.geo.country_name | Country name. | keyword | -| destination.geo.location | Longitude and latitude. | geo_point | -| destination.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| destination.geo.region_iso_code | Region ISO code. | keyword | -| destination.geo.region_name | Region name. | keyword | -| destination.ip | IP address of the destination (IPv4 or IPv6). | ip | -| destination.port | Port of the destination. | long | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | -| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date | | event.dataset | Event dataset | constant_keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.id | Unique ID to describe the event. | keyword | -| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | -| file.mime_type | MIME type should identify the format of the file or stream of bytes using https://www.iana.org/assignments/media-types/media-types.xhtml[IANA official types], where possible. When more than one type is applicable, the most specific type should be used. | keyword | -| file.size | File size in bytes. Only relevant when `file.type` is "file". | long | | geo.city_name | City name. | keyword | | geo.continent_name | Name of the continent. | keyword | | geo.country_iso_code | Country ISO code. | keyword | | geo.country_name | Country name. | keyword | | geo.location | Longitude and latitude. | geo_point | | geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| host.architecture | Operating system architecture. | keyword | | host.containerized | If the host is a container. | boolean | -| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | -| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | -| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | -| host.ip | Host ip addresses. | ip | -| host.mac | Host MAC addresses. The notation format from RFC 7042 is suggested: Each octet (that is, 8-bit byte) is represented by two [uppercase] hexadecimal digits giving the value of the octet as an unsigned integer. Successive octets are separated by a hyphen. | keyword | -| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | host.os.build | OS build information. | keyword | | host.os.codename | OS codename, if any. | keyword | -| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | -| host.os.kernel | Operating system kernel version as a raw string. | keyword | -| host.os.name | Operating system name, without the version. | keyword | -| host.os.name.text | Multi-field of `host.os.name`. | match_only_text | -| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | -| host.os.version | Operating system version as a raw string. | keyword | -| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | -| log.level | Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are `warn`, `err`, `i`, `informational`. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| network.community_id | A hash of source and destination IPs and ports, as well as the protocol used in a communication. This is a tool-agnostic standard to identify flows. Learn more at https://github.com/corelight/community-id-spec. | keyword | -| related.ip | All of the IPs seen on your event. | ip | -| related.user | All the user names or other user identifiers seen on the event. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | -| source.geo.location | Longitude and latitude. | geo_point | -| source.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| tags | List of keywords used to tag each event. | keyword | -| user.domain | Name of the directory the user is a member of. For example, an LDAP or Active Directory domain name. | keyword | -| user.full_name | User's full name, if available. | keyword | -| user.full_name.text | Multi-field of `user.full_name`. | match_only_text | -| user.id | Unique identifier of the user. | keyword | -| user.name | Short name or login of the user. | keyword | -| user.name.text | Multi-field of `user.name`. | match_only_text | diff --git a/packages/azure/docs/springcloudlogs.md b/packages/azure/docs/springcloudlogs.md index fffd620844b..f2c287f810d 100644 --- a/packages/azure/docs/springcloudlogs.md +++ b/packages/azure/docs/springcloudlogs.md @@ -68,74 +68,78 @@ An example event for `springcloudlogs` looks as following: ```json { + "@timestamp": "2021-08-03T15:07:03.354Z", "agent": { + "ephemeral_id": "49d0a57c-119c-4a01-878c-d9b06fc81f65", "hostname": "docker-fleet-agent", - "name": "docker-fleet-agent", "id": "ef999bb2-fe83-4ffa-aa0c-0b54b7598df4", + "name": "docker-fleet-agent", "type": "filebeat", - "ephemeral_id": "49d0a57c-119c-4a01-878c-d9b06fc81f65", "version": "7.14.0" }, - "log": { - "level": "Informational" - }, - "elastic_agent": { - "id": "ef999bb2-fe83-4ffa-aa0c-0b54b7598df4", - "version": "7.14.0", - "snapshot": true - }, - "message": "2021-08-03 15:07:03.354 INFO [helloapp,,,] 1 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration", - "tags": [ - "azure-springcloudlogs" - ], - "geo": { - "name": "westeurope" - }, - "cloud": { - "provider": "azure" - }, - "@timestamp": "2021-08-03T15:07:03.354Z", - "ecs": { - "version": "1.10.0" - }, - "data_stream": { - "namespace": "default", - "type": "logs", - "dataset": "azure.springcloudlogs" - }, - "event": { - "agent_id_status": "verified", - "ingested": "2021-08-03T15:15:14.386889100Z", - "kind": "event", - "action": "Microsoft.AppPlatform/Spring/logs", - "dataset": "azure.springcloudlogs" - }, "azure": { - "subscription_id": "0E073EC1-C22F-4488-ADDE-DA35ED609CCD", + "resource": { + "group": "TESTM", + "id": "/SUBSCRIPTIONS/0E073EC1-C22F-4488-ADDE-DA35ED609CCD/RESOURCEGROUPS/TESTM/PROVIDERS/MICROSOFT.APPPLATFORM/SPRING/OBSSPRINCLOUD", + "name": "OBSSPRINCLOUD", + "provider": "MICROSOFT.APPPLATFORM/SPRING" + }, "springcloudlogs": { - "log_format": "RAW", - "operation_name": "Microsoft.AppPlatform/Spring/logs", "category": "ApplicationConsole", "event_category": "Administrative", + "log_format": "RAW", "logtag": "F", + "operation_name": "Microsoft.AppPlatform/Spring/logs", "properties": { "app_name": "helloapp", "instance_name": "helloapp-default-8-56df6b7f56-4vr94", - "stream": "stdout", + "service_id": "99070c7524f14eaf970bbdf35f357772", "service_name": "obssprincloud", - "service_id": "99070c7524f14eaf970bbdf35f357772" + "stream": "stdout" } }, - "resource": { - "provider": "MICROSOFT.APPPLATFORM/SPRING", - "name": "OBSSPRINCLOUD", - "id": "/SUBSCRIPTIONS/0E073EC1-C22F-4488-ADDE-DA35ED609CCD/RESOURCEGROUPS/TESTM/PROVIDERS/MICROSOFT.APPPLATFORM/SPRING/OBSSPRINCLOUD", - "group": "TESTM" - } - } + "subscription_id": "0E073EC1-C22F-4488-ADDE-DA35ED609CCD" + }, + "cloud": { + "provider": "azure" + }, + "data_stream": { + "dataset": "azure.springcloudlogs", + "namespace": "default", + "type": "logs" + }, + "ecs": { + "version": "8.11.0" + }, + "elastic_agent": { + "id": "ef999bb2-fe83-4ffa-aa0c-0b54b7598df4", + "snapshot": true, + "version": "7.14.0" + }, + "event": { + "action": "Microsoft.AppPlatform/Spring/logs", + "agent_id_status": "verified", + "dataset": "azure.springcloudlogs", + "ingested": "2021-08-03T15:15:14.386889100Z", + "kind": "event" + }, + "geo": { + "name": "westeurope" + }, + "log": { + "level": "Informational" + }, + "message": "2021-08-03 15:07:03.354 INFO [helloapp,,,] 1 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration", + "tags": [ + "azure-springcloudlogs" + ] } ``` +**ECS Field Reference** + +Please refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html) for detailed information on ECS fields. + **Exported fields** | Field | Description | Type | @@ -165,96 +169,19 @@ An example event for `springcloudlogs` looks as following: | azure.springcloudlogs.status | Status | keyword | | azure.subscription_id | Azure subscription ID | keyword | | azure.tenant_id | tenant ID | keyword | -| client.ip | IP address of the client (IPv4 or IPv6). | ip | -| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | -| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword | | cloud.image.id | Image ID for the cloud instance. | keyword | -| cloud.instance.id | Instance ID of the host machine. | keyword | -| cloud.instance.name | Instance name of the host machine. | keyword | -| cloud.machine.type | Machine type of the host machine. | keyword | -| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword | -| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | -| cloud.region | Region in which this host, resource, or service is located. | keyword | -| container.id | Unique container id. | keyword | -| container.image.name | Name of the image the container was built on. | keyword | -| container.labels | Image labels. | object | -| container.name | Container name. | keyword | | data_stream.dataset | Data stream dataset name. | constant_keyword | | data_stream.namespace | Data stream namespace. | constant_keyword | | data_stream.type | Data stream type. | constant_keyword | -| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| destination.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| destination.as.organization.name | Organization name. | keyword | -| destination.as.organization.name.text | Multi-field of `destination.as.organization.name`. | match_only_text | -| destination.geo.city_name | City name. | keyword | -| destination.geo.continent_name | Name of the continent. | keyword | -| destination.geo.country_iso_code | Country ISO code. | keyword | -| destination.geo.country_name | Country name. | keyword | -| destination.geo.location | Longitude and latitude. | geo_point | -| destination.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| destination.geo.region_iso_code | Region ISO code. | keyword | -| destination.geo.region_name | Region name. | keyword | -| destination.ip | IP address of the destination (IPv4 or IPv6). | ip | -| destination.port | Port of the destination. | long | -| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | -| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword | -| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword | -| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date | | event.dataset | Event dataset | constant_keyword | -| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long | -| event.id | Unique ID to describe the event. | keyword | -| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date | -| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | event.module | Event module | constant_keyword | -| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | -| file.mime_type | MIME type should identify the format of the file or stream of bytes using https://www.iana.org/assignments/media-types/media-types.xhtml[IANA official types], where possible. When more than one type is applicable, the most specific type should be used. | keyword | -| file.size | File size in bytes. Only relevant when `file.type` is "file". | long | | geo.city_name | City name. | keyword | | geo.continent_name | Name of the continent. | keyword | | geo.country_iso_code | Country ISO code. | keyword | | geo.country_name | Country name. | keyword | | geo.location | Longitude and latitude. | geo_point | | geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| host.architecture | Operating system architecture. | keyword | | host.containerized | If the host is a container. | boolean | -| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | -| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | -| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | -| host.ip | Host ip addresses. | ip | -| host.mac | Host MAC addresses. The notation format from RFC 7042 is suggested: Each octet (that is, 8-bit byte) is represented by two [uppercase] hexadecimal digits giving the value of the octet as an unsigned integer. Successive octets are separated by a hyphen. | keyword | -| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | host.os.build | OS build information. | keyword | | host.os.codename | OS codename, if any. | keyword | -| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | -| host.os.kernel | Operating system kernel version as a raw string. | keyword | -| host.os.name | Operating system name, without the version. | keyword | -| host.os.name.text | Multi-field of `host.os.name`. | match_only_text | -| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | -| host.os.version | Operating system version as a raw string. | keyword | -| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | -| log.level | Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are `warn`, `err`, `i`, `informational`. | keyword | -| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | match_only_text | -| network.community_id | A hash of source and destination IPs and ports, as well as the protocol used in a communication. This is a tool-agnostic standard to identify flows. Learn more at https://github.com/corelight/community-id-spec. | keyword | -| related.ip | All of the IPs seen on your event. | ip | -| related.user | All the user names or other user identifiers seen on the event. | keyword | -| source.address | Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword | -| source.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long | -| source.as.organization.name | Organization name. | keyword | -| source.as.organization.name.text | Multi-field of `source.as.organization.name`. | match_only_text | -| source.geo.city_name | City name. | keyword | -| source.geo.continent_name | Name of the continent. | keyword | -| source.geo.country_iso_code | Country ISO code. | keyword | -| source.geo.country_name | Country name. | keyword | -| source.geo.location | Longitude and latitude. | geo_point | -| source.geo.name | User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation. | keyword | -| source.geo.region_iso_code | Region ISO code. | keyword | -| source.geo.region_name | Region name. | keyword | -| source.ip | IP address of the source (IPv4 or IPv6). | ip | -| tags | List of keywords used to tag each event. | keyword | -| user.domain | Name of the directory the user is a member of. For example, an LDAP or Active Directory domain name. | keyword | -| user.full_name | User's full name, if available. | keyword | -| user.full_name.text | Multi-field of `user.full_name`. | match_only_text | -| user.id | Unique identifier of the user. | keyword | -| user.name | Short name or login of the user. | keyword | -| user.name.text | Multi-field of `user.name`. | match_only_text | diff --git a/packages/azure/manifest.yml b/packages/azure/manifest.yml index 13f7048ba5c..786fc1c71d3 100644 --- a/packages/azure/manifest.yml +++ b/packages/azure/manifest.yml @@ -1,6 +1,6 @@ name: azure title: Azure Logs -version: 1.11.4 +version: 1.12.0 description: This Elastic integration collects logs from Azure type: integration icons: @@ -14,7 +14,7 @@ categories: - observability conditions: kibana: - version: "^8.12.0" + version: "^8.13.0" elastic: subscription: basic screenshots: