forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Filebeat] Fix date parsing in GSuite/Google Workspace modules (elast…
…ic#24696) * Fix date parsing in GSuite/login fileset The format of Date#toUTCString was incompatible with the format accepted by Elasticsearch by default. By writing a Date object from the JS pipeline this becomes a time.Time in the event that is formatted by common.Time when going out as JSON. Fixes elastic#24694 * Apply fix to google_workspace Fixes elastic#24692
- Loading branch information
1 parent
fa0be76
commit a4a3ff0
Showing
5 changed files
with
437 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,174 @@ | |
"user.target.email": "[email protected]", | ||
"user.target.name": "foo" | ||
}, | ||
{ | ||
"@timestamp": "2020-10-02T15:00:00.000Z", | ||
"event.action": "suspicious_login", | ||
"event.category": [ | ||
"authentication" | ||
], | ||
"event.dataset": "google_workspace.login", | ||
"event.id": "1", | ||
"event.module": "google_workspace", | ||
"event.original": "{\"kind\":\"admin#reports#activity\",\"id\":{\"time\":\"2020-10-02T15:00:00Z\",\"uniqueQualifier\":1,\"applicationName\":\"login\",\"customerId\":\"1\"},\"actor\":{\"callerType\":\"USER\",\"email\":\"[email protected]\",\"profileId\":1},\"ownerDomain\":\"elastic.com\",\"ipAddress\":\"98.235.162.24\",\"events\":{\"type\":\"account_warning\",\"name\":\"suspicious_login\",\"parameters\":[{\"name\":\"affected_email_address\",\"value\":\"[email protected]\"},{\"name\":\"login_timestamp\",\"intValue\":1593695305123456}]}}", | ||
"event.provider": "login", | ||
"event.start": "2020-07-02T13:08:25.123Z", | ||
"event.type": [ | ||
"info" | ||
], | ||
"fileset.name": "login", | ||
"google_workspace.actor.type": "USER", | ||
"google_workspace.event.type": "account_warning", | ||
"google_workspace.kind": "admin#reports#activity", | ||
"google_workspace.login.affected_email_address": "[email protected]", | ||
"google_workspace.organization.domain": "elastic.com", | ||
"input.type": "log", | ||
"log.offset": 406, | ||
"organization.id": "1", | ||
"related.ip": [ | ||
"98.235.162.24" | ||
], | ||
"related.user": [ | ||
"foo" | ||
], | ||
"service.type": "google_workspace", | ||
"source.as.number": 7922, | ||
"source.as.organization.name": "Comcast Cable Communications, LLC", | ||
"source.geo.city_name": "State College", | ||
"source.geo.continent_name": "North America", | ||
"source.geo.country_iso_code": "US", | ||
"source.geo.country_name": "United States", | ||
"source.geo.location.lat": 40.7957, | ||
"source.geo.location.lon": -77.8618, | ||
"source.geo.region_iso_code": "US-PA", | ||
"source.geo.region_name": "Pennsylvania", | ||
"source.ip": "98.235.162.24", | ||
"source.user.domain": "bar.com", | ||
"source.user.email": "[email protected]", | ||
"source.user.id": "1", | ||
"source.user.name": "foo", | ||
"tags": [ | ||
"forwarded" | ||
], | ||
"user.domain": "bar.com", | ||
"user.id": "1", | ||
"user.name": "foo", | ||
"user.target.domain": "elastic.co", | ||
"user.target.email": "[email protected]", | ||
"user.target.name": "foo" | ||
}, | ||
{ | ||
"@timestamp": "2020-10-02T15:00:00.000Z", | ||
"event.action": "suspicious_login_less_secure_app", | ||
"event.category": [ | ||
"authentication" | ||
], | ||
"event.dataset": "google_workspace.login", | ||
"event.id": "1", | ||
"event.module": "google_workspace", | ||
"event.original": "{\"kind\":\"admin#reports#activity\",\"id\":{\"time\":\"2020-10-02T15:00:00Z\",\"uniqueQualifier\":1,\"applicationName\":\"login\",\"customerId\":\"1\"},\"actor\":{\"callerType\":\"USER\",\"email\":\"[email protected]\",\"profileId\":1},\"ownerDomain\":\"elastic.com\",\"ipAddress\":\"98.235.162.24\",\"events\":{\"type\":\"account_warning\",\"name\":\"suspicious_login_less_secure_app\",\"parameters\":[{\"name\":\"affected_email_address\",\"value\":\"[email protected]\"},{\"name\":\"login_timestamp\",\"intValue\":1593695305123456}]}}", | ||
"event.provider": "login", | ||
"event.start": "2020-07-02T13:08:25.123Z", | ||
"event.type": [ | ||
"info" | ||
], | ||
"fileset.name": "login", | ||
"google_workspace.actor.type": "USER", | ||
"google_workspace.event.type": "account_warning", | ||
"google_workspace.kind": "admin#reports#activity", | ||
"google_workspace.login.affected_email_address": "[email protected]", | ||
"google_workspace.organization.domain": "elastic.com", | ||
"input.type": "log", | ||
"log.offset": 853, | ||
"organization.id": "1", | ||
"related.ip": [ | ||
"98.235.162.24" | ||
], | ||
"related.user": [ | ||
"foo" | ||
], | ||
"service.type": "google_workspace", | ||
"source.as.number": 7922, | ||
"source.as.organization.name": "Comcast Cable Communications, LLC", | ||
"source.geo.city_name": "State College", | ||
"source.geo.continent_name": "North America", | ||
"source.geo.country_iso_code": "US", | ||
"source.geo.country_name": "United States", | ||
"source.geo.location.lat": 40.7957, | ||
"source.geo.location.lon": -77.8618, | ||
"source.geo.region_iso_code": "US-PA", | ||
"source.geo.region_name": "Pennsylvania", | ||
"source.ip": "98.235.162.24", | ||
"source.user.domain": "bar.com", | ||
"source.user.email": "[email protected]", | ||
"source.user.id": "1", | ||
"source.user.name": "foo", | ||
"tags": [ | ||
"forwarded" | ||
], | ||
"user.domain": "bar.com", | ||
"user.id": "1", | ||
"user.name": "foo", | ||
"user.target.domain": "elastic.co", | ||
"user.target.email": "[email protected]", | ||
"user.target.name": "foo" | ||
}, | ||
{ | ||
"@timestamp": "2020-10-02T15:00:00.000Z", | ||
"event.action": "suspicious_programmatic_login", | ||
"event.category": [ | ||
"authentication" | ||
], | ||
"event.dataset": "google_workspace.login", | ||
"event.id": "1", | ||
"event.module": "google_workspace", | ||
"event.original": "{\"kind\":\"admin#reports#activity\",\"id\":{\"time\":\"2020-10-02T15:00:00Z\",\"uniqueQualifier\":1,\"applicationName\":\"login\",\"customerId\":\"1\"},\"actor\":{\"callerType\":\"USER\",\"email\":\"[email protected]\",\"profileId\":1},\"ownerDomain\":\"elastic.com\",\"ipAddress\":\"98.235.162.24\",\"events\":{\"type\":\"account_warning\",\"name\":\"suspicious_programmatic_login\",\"parameters\":[{\"name\":\"affected_email_address\",\"value\":\"[email protected]\"},{\"name\":\"login_timestamp\",\"intValue\":1593695305123456}]}}", | ||
"event.provider": "login", | ||
"event.start": "2020-07-02T13:08:25.123Z", | ||
"event.type": [ | ||
"info" | ||
], | ||
"fileset.name": "login", | ||
"google_workspace.actor.type": "USER", | ||
"google_workspace.event.type": "account_warning", | ||
"google_workspace.kind": "admin#reports#activity", | ||
"google_workspace.login.affected_email_address": "[email protected]", | ||
"google_workspace.organization.domain": "elastic.com", | ||
"input.type": "log", | ||
"log.offset": 1316, | ||
"organization.id": "1", | ||
"related.ip": [ | ||
"98.235.162.24" | ||
], | ||
"related.user": [ | ||
"foo" | ||
], | ||
"service.type": "google_workspace", | ||
"source.as.number": 7922, | ||
"source.as.organization.name": "Comcast Cable Communications, LLC", | ||
"source.geo.city_name": "State College", | ||
"source.geo.continent_name": "North America", | ||
"source.geo.country_iso_code": "US", | ||
"source.geo.country_name": "United States", | ||
"source.geo.location.lat": 40.7957, | ||
"source.geo.location.lon": -77.8618, | ||
"source.geo.region_iso_code": "US-PA", | ||
"source.geo.region_name": "Pennsylvania", | ||
"source.ip": "98.235.162.24", | ||
"source.user.domain": "bar.com", | ||
"source.user.email": "[email protected]", | ||
"source.user.id": "1", | ||
"source.user.name": "foo", | ||
"tags": [ | ||
"forwarded" | ||
], | ||
"user.domain": "bar.com", | ||
"user.id": "1", | ||
"user.name": "foo", | ||
"user.target.domain": "elastic.co", | ||
"user.target.email": "[email protected]", | ||
"user.target.name": "foo" | ||
}, | ||
{ | ||
"@timestamp": "2020-10-02T15:00:00.000Z", | ||
"event.action": "account_disabled_generic", | ||
|
@@ -223,6 +391,63 @@ | |
"user.target.email": "[email protected]", | ||
"user.target.name": "foo" | ||
}, | ||
{ | ||
"@timestamp": "2020-10-02T15:00:00.000Z", | ||
"event.action": "account_disabled_hijacked", | ||
"event.category": [ | ||
"authentication" | ||
], | ||
"event.dataset": "google_workspace.login", | ||
"event.id": "1", | ||
"event.module": "google_workspace", | ||
"event.original": "{\"kind\":\"admin#reports#activity\",\"id\":{\"time\":\"2020-10-02T15:00:00Z\",\"uniqueQualifier\":1,\"applicationName\":\"login\",\"customerId\":\"1\"},\"actor\":{\"callerType\":\"USER\",\"email\":\"[email protected]\",\"profileId\":1},\"ownerDomain\":\"elastic.com\",\"ipAddress\":\"98.235.162.24\",\"events\":{\"type\":\"account_warning\",\"name\":\"account_disabled_hijacked\",\"parameters\":[{\"name\":\"affected_email_address\",\"value\":\"[email protected]\"},{\"name\":\"login_timestamp\",\"intValue\":1593695305123456}]}}", | ||
"event.provider": "login", | ||
"event.start": "2020-07-02T13:08:25.123Z", | ||
"event.type": [ | ||
"user", | ||
"change" | ||
], | ||
"fileset.name": "login", | ||
"google_workspace.actor.type": "USER", | ||
"google_workspace.event.type": "account_warning", | ||
"google_workspace.kind": "admin#reports#activity", | ||
"google_workspace.login.affected_email_address": "[email protected]", | ||
"google_workspace.organization.domain": "elastic.com", | ||
"input.type": "log", | ||
"log.offset": 2992, | ||
"organization.id": "1", | ||
"related.ip": [ | ||
"98.235.162.24" | ||
], | ||
"related.user": [ | ||
"foo" | ||
], | ||
"service.type": "google_workspace", | ||
"source.as.number": 7922, | ||
"source.as.organization.name": "Comcast Cable Communications, LLC", | ||
"source.geo.city_name": "State College", | ||
"source.geo.continent_name": "North America", | ||
"source.geo.country_iso_code": "US", | ||
"source.geo.country_name": "United States", | ||
"source.geo.location.lat": 40.7957, | ||
"source.geo.location.lon": -77.8618, | ||
"source.geo.region_iso_code": "US-PA", | ||
"source.geo.region_name": "Pennsylvania", | ||
"source.ip": "98.235.162.24", | ||
"source.user.domain": "bar.com", | ||
"source.user.email": "[email protected]", | ||
"source.user.id": "1", | ||
"source.user.name": "foo", | ||
"tags": [ | ||
"forwarded" | ||
], | ||
"user.domain": "bar.com", | ||
"user.id": "1", | ||
"user.name": "foo", | ||
"user.target.domain": "elastic.co", | ||
"user.target.email": "[email protected]", | ||
"user.target.name": "foo" | ||
}, | ||
{ | ||
"@timestamp": "2020-10-02T15:00:00.000Z", | ||
"event.action": "gov_attack_warning", | ||
|
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
Oops, something went wrong.