-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve ECS categorization fields for azure module
- activitylogs + add azure.activitylogs.result_type + set default_field: false + populate event.outcome with allowed values + set event.action + populate event.category with allowed values + set event.kind + set event.type + add support tickets example + add geoip for source.ip + add AS info for source.ip + add user.name + add user.full_name + add user.domain - auditlogs + set default_field: false + add azure.auditlogs.category + populate event.outcome with allowed values + set event.action + set event.kind - signinlogs + set default_field: false + set event.action + populate event.category with allowed values + set event.type + populate event.outcome with allowed values + add azure.signinlogs.category + add azure.signinlogs.result_type + set user.name + set user.domain + set user.full_name + set user.id + add geoip for source.ip + add AS info for source.ip
- Loading branch information
Showing
14 changed files
with
386 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
x-pack/filebeat/module/azure/activitylogs/test/supporttickets_write.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"time":"2015-01-21T22:14:26.9792776Z","resourceId":"/subscriptions/s1/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841","operationName":"microsoft.support/supporttickets/write","category":"Write","resultType":"Success","resultSignature":"Succeeded.Created","durationMs":2826,"callerIpAddress":"111.111.111.11","correlationId":"c776f9f4-36e5-4e0e-809b-c9b3c3fb62a8","identity":{"authorization":{"scope":"/subscriptions/s1/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841","action":"microsoft.support/supporttickets/write","evidence":{"role":"Subscription Admin"}},"claims":{"aud":"https://management.core.windows.net/","iss":"https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/","iat":"1421876371","nbf":"1421876371","exp":"1421880271","ver":"1.0","http://schemas.microsoft.com/identity/claims/tenantid":"1e8d8218-c5e7-4578-9acc-9abbd5d23315 ","http://schemas.microsoft.com/claims/authnmethodsreferences":"pwd","http://schemas.microsoft.com/identity/claims/objectidentifier":"2468adf0-8211-44e3-95xq-85137af64708","http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn":"admin@contoso.com","puid":"20030000801A118C","http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier":"9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM","http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname":"John","http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname":"Smith","name":"John Smith","groups":"cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c","http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name":" admin@contoso.com","appid":"c44b4083-3bq0-49c1-b47d-974e53cbdf3c","appidacr":"2","http://schemas.microsoft.com/identity/claims/scope":"user_impersonation","http://schemas.microsoft.com/claims/authnclassreference":"1"}},"level":"Information","location":"global","properties":{"statusCode":"Created","serviceRequestId":"50d5cddb-8ca0-47ad-9b80-6cde2207f97c"}} |
74 changes: 74 additions & 0 deletions
74
x-pack/filebeat/module/azure/activitylogs/test/supporttickets_write.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
[ | ||
{ | ||
"@timestamp": "2015-01-21T22:14:26.979Z", | ||
"azure.activitylogs.category": "Write", | ||
"azure.activitylogs.event_category": "Administrative", | ||
"azure.activitylogs.identity.authorization.action": "microsoft.support/supporttickets/write", | ||
"azure.activitylogs.identity.authorization.evidence.role": "Subscription Admin", | ||
"azure.activitylogs.identity.authorization.scope": "/subscriptions/s1/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841", | ||
"azure.activitylogs.identity.claims.appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c", | ||
"azure.activitylogs.identity.claims.appidacr": "2", | ||
"azure.activitylogs.identity.claims.aud": "https://management.core.windows.net/", | ||
"azure.activitylogs.identity.claims.exp": "1421880271", | ||
"azure.activitylogs.identity.claims.groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c", | ||
"azure.activitylogs.identity.claims.http://schemas_microsoft_com/claims/authnclassreference": "1", | ||
"azure.activitylogs.identity.claims.http://schemas_microsoft_com/claims/authnmethodsreferences": "pwd", | ||
"azure.activitylogs.identity.claims.http://schemas_microsoft_com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708", | ||
"azure.activitylogs.identity.claims.http://schemas_microsoft_com/identity/claims/scope": "user_impersonation", | ||
"azure.activitylogs.identity.claims.http://schemas_microsoft_com/identity/claims/tenantid": "1e8d8218-c5e7-4578-9acc-9abbd5d23315 ", | ||
"azure.activitylogs.identity.claims.http://schemas_xmlsoap_org/ws/2005/05/identity/claims/givenname": "John", | ||
"azure.activitylogs.identity.claims.http://schemas_xmlsoap_org/ws/2005/05/identity/claims/name": " admin@contoso.com", | ||
"azure.activitylogs.identity.claims.http://schemas_xmlsoap_org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM", | ||
"azure.activitylogs.identity.claims.http://schemas_xmlsoap_org/ws/2005/05/identity/claims/surname": "Smith", | ||
"azure.activitylogs.identity.claims.http://schemas_xmlsoap_org/ws/2005/05/identity/claims/upn": "admin@contoso.com", | ||
"azure.activitylogs.identity.claims.iat": "1421876371", | ||
"azure.activitylogs.identity.claims.iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/", | ||
"azure.activitylogs.identity.claims.nbf": "1421876371", | ||
"azure.activitylogs.identity.claims.puid": "20030000801A118C", | ||
"azure.activitylogs.identity.claims.ver": "1.0", | ||
"azure.activitylogs.identity.claims_initiated_by_user.fullname": "John Smith", | ||
"azure.activitylogs.identity.claims_initiated_by_user.givenname": "John", | ||
"azure.activitylogs.identity.claims_initiated_by_user.name": " admin@contoso.com", | ||
"azure.activitylogs.identity.claims_initiated_by_user.schema": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims", | ||
"azure.activitylogs.identity.claims_initiated_by_user.surname": "Smith", | ||
"azure.activitylogs.operation_name": "microsoft.support/supporttickets/write", | ||
"azure.activitylogs.properties.service_request_id": "50d5cddb-8ca0-47ad-9b80-6cde2207f97c", | ||
"azure.activitylogs.properties.status_code": "Created", | ||
"azure.activitylogs.result_signature": "Succeeded.Created", | ||
"azure.activitylogs.result_type": "Success", | ||
"azure.correlation_id": "c776f9f4-36e5-4e0e-809b-c9b3c3fb62a8", | ||
"azure.resource.id": "/subscriptions/s1/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841", | ||
"azure.resource.provider": "microsoft.support/supporttickets/115012112305841", | ||
"cloud.provider": "azure", | ||
"event.action": "microsoft.support/supporttickets/write", | ||
"event.dataset": "azure.activitylogs", | ||
"event.duration": -1468967296, | ||
"event.kind": "event", | ||
"event.module": "azure", | ||
"event.type": [ | ||
"change" | ||
], | ||
"fileset.name": "activitylogs", | ||
"geo.continent_name": "Asia", | ||
"geo.country_iso_code": "JP", | ||
"geo.location.lat": 35.69, | ||
"geo.location.lon": 139.69, | ||
"input.type": "log", | ||
"log.level": "Information", | ||
"log.offset": 0, | ||
"service.type": "azure", | ||
"source.as.number": 2516, | ||
"source.as.organization.name": "KDDI CORPORATION", | ||
"source.geo.continent_name": "Asia", | ||
"source.geo.country_iso_code": "JP", | ||
"source.geo.location.lat": 35.69, | ||
"source.geo.location.lon": 139.69, | ||
"source.ip": "111.111.111.11", | ||
"tags": [ | ||
"forwarded" | ||
], | ||
"user.domain": "contoso.com", | ||
"user.full_name": "John Smith", | ||
"user.name": "admin" | ||
} | ||
] |
Oops, something went wrong.