-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,083 additions
and
580 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/okta/data_stream/system/_dev/test/pipeline/test-system-events.json
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
packages/okta/data_stream/system/_dev/test/pipeline/test-system-events.json-config.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,8 @@ | ||
{ | ||
"fields": { | ||
"@timestamp": "2020-04-28T11:07:58.223Z" | ||
}, | ||
"dynamic_fields": { | ||
"event.ingested": "^.*$" | ||
} | ||
} |
373 changes: 373 additions & 0 deletions
373
packages/okta/data_stream/system/_dev/test/pipeline/test-system-events.json-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,373 @@ | ||
{ | ||
"expected": [ | ||
{ | ||
"@timestamp": "2020-02-14T22:18:51.843Z", | ||
"related": { | ||
"user": [ | ||
"xxxxxx" | ||
], | ||
"ip": [ | ||
"108.255.197.247" | ||
] | ||
}, | ||
"client": { | ||
"geo": { | ||
"country_name": "United States", | ||
"city_name": "Dublin", | ||
"location": { | ||
"lon": -121.919, | ||
"lat": 37.7201 | ||
}, | ||
"region_name": "California" | ||
}, | ||
"user": { | ||
"full_name": "xxxxxx", | ||
"id": "00u1abvz4pYqdM8ms4x6" | ||
}, | ||
"ip": "108.255.197.247" | ||
}, | ||
"source": { | ||
"geo": { | ||
"continent_name": "North America", | ||
"region_iso_code": "US-CA", | ||
"city_name": "Dublin", | ||
"country_iso_code": "US", | ||
"country_name": "United States", | ||
"region_name": "California", | ||
"location": { | ||
"lon": -121.919, | ||
"lat": 37.7201 | ||
} | ||
}, | ||
"as": { | ||
"number": 7018, | ||
"organization": { | ||
"name": "AT\u0026T Services, Inc." | ||
} | ||
}, | ||
"user": { | ||
"full_name": "xxxxxx", | ||
"id": "00u1abvz4pYqdM8ms4x6" | ||
}, | ||
"ip": "108.255.197.247" | ||
}, | ||
"event": { | ||
"ingested": "2021-02-16T11:12:28.827203700Z", | ||
"kind": "event", | ||
"action": "user.session.end", | ||
"id": "faf7398a-4f77-11ea-97fb-5925e98228bd", | ||
"category": [ | ||
"authentication", | ||
"session" | ||
], | ||
"type": [ | ||
"end", | ||
"user" | ||
], | ||
"outcome": "success" | ||
}, | ||
"okta": { | ||
"actor": { | ||
"id": "00u1abvz4pYqdM8ms4x6", | ||
"display_name": "xxxxxx", | ||
"type": "User", | ||
"alternate_id": "xxxxxx@elastic.co" | ||
}, | ||
"debug_context": { | ||
"debug_data": { | ||
"threat_suspected": "false", | ||
"request_id": "XkccyyMli2Uay2I93ZgRzQAAB0c", | ||
"request_uri": "/login/signout", | ||
"url": "/login/signout?message=login_page_messages.session_has_expired" | ||
} | ||
}, | ||
"event_type": "user.session.end", | ||
"authentication_context": { | ||
"authentication_step": 0, | ||
"external_session_id": "102nZHzd6OHSfGG51vsoc22gw" | ||
}, | ||
"display_message": "User logout from Okta", | ||
"client": { | ||
"zone": "null", | ||
"device": "Computer", | ||
"user_agent": { | ||
"os": "Mac OS X", | ||
"raw_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0", | ||
"browser": "FIREFOX" | ||
}, | ||
"ip": "108.255.197.247" | ||
}, | ||
"uuid": "faf7398a-4f77-11ea-97fb-5925e98228bd", | ||
"outcome": { | ||
"result": "SUCCESS" | ||
}, | ||
"transaction": { | ||
"type": "WEB", | ||
"id": "XkccyyMli2Uay2I93ZgRzQAAB0c" | ||
} | ||
}, | ||
"user": { | ||
"full_name": "xxxxxx" | ||
}, | ||
"user_agent": { | ||
"name": "Firefox", | ||
"original": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0", | ||
"os": { | ||
"name": "Mac OS X", | ||
"version": "10.15", | ||
"full": "Mac OS X 10.15" | ||
}, | ||
"device": { | ||
"name": "Mac" | ||
}, | ||
"version": "72.0." | ||
} | ||
}, | ||
{ | ||
"@timestamp": "2020-02-14T22:18:51.843Z", | ||
"related": { | ||
"user": [ | ||
"xxxxxx" | ||
], | ||
"ip": [ | ||
"108.255.197.247" | ||
] | ||
}, | ||
"client": { | ||
"geo": { | ||
"country_name": "United States", | ||
"city_name": "Dublin", | ||
"location": { | ||
"lon": -121.919, | ||
"lat": 37.7201 | ||
}, | ||
"region_name": "California" | ||
}, | ||
"user": { | ||
"full_name": "xxxxxx", | ||
"id": "00u1abvz4pYqdM8ms4x6" | ||
}, | ||
"ip": "108.255.197.247" | ||
}, | ||
"source": { | ||
"geo": { | ||
"continent_name": "North America", | ||
"region_iso_code": "US-CA", | ||
"city_name": "Dublin", | ||
"country_iso_code": "US", | ||
"country_name": "United States", | ||
"region_name": "California", | ||
"location": { | ||
"lon": -121.919, | ||
"lat": 37.7201 | ||
} | ||
}, | ||
"as": { | ||
"number": 7018, | ||
"organization": { | ||
"name": "AT\u0026T Services, Inc." | ||
} | ||
}, | ||
"user": { | ||
"full_name": "xxxxxx", | ||
"id": "00u1abvz4pYqdM8ms4x6" | ||
}, | ||
"ip": "108.255.197.247" | ||
}, | ||
"event": { | ||
"ingested": "2021-02-16T11:12:28.827232900Z", | ||
"kind": "event", | ||
"action": "user.session.end", | ||
"id": "faf7398a-4f77-11ea-97fb-5925e98228bd", | ||
"category": [ | ||
"authentication", | ||
"session" | ||
], | ||
"type": [ | ||
"end", | ||
"user" | ||
], | ||
"outcome": "success" | ||
}, | ||
"okta": { | ||
"actor": { | ||
"id": "00u1abvz4pYqdM8ms4x6", | ||
"display_name": "xxxxxx", | ||
"type": "User", | ||
"alternate_id": "xxxxxx@elastic.co" | ||
}, | ||
"debug_context": { | ||
"debug_data": { | ||
"threat_suspected": "false", | ||
"request_id": "XkccyyMli2Uay2I93ZgRzQAAB0c", | ||
"request_uri": "/login/signout", | ||
"url": "/login/signout?message=login_page_messages.session_has_expired" | ||
} | ||
}, | ||
"event_type": "user.session.end", | ||
"authentication_context": { | ||
"authentication_step": 0, | ||
"external_session_id": "102nZHzd6OHSfGG51vsoc22gw" | ||
}, | ||
"display_message": "User logout from Okta", | ||
"client": { | ||
"zone": "null", | ||
"device": "Computer", | ||
"user_agent": { | ||
"os": "Mac OS X", | ||
"raw_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0", | ||
"browser": "FIREFOX" | ||
}, | ||
"ip": "108.255.197.247" | ||
}, | ||
"uuid": "faf7398a-4f77-11ea-97fb-5925e98228bd", | ||
"outcome": { | ||
"result": "SUCCESS" | ||
}, | ||
"transaction": { | ||
"type": "WEB", | ||
"id": "XkccyyMli2Uay2I93ZgRzQAAB0c" | ||
} | ||
}, | ||
"user": { | ||
"full_name": "xxxxxx" | ||
}, | ||
"user_agent": { | ||
"name": "Firefox", | ||
"original": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0", | ||
"os": { | ||
"name": "Mac OS X", | ||
"version": "10.15", | ||
"full": "Mac OS X 10.15" | ||
}, | ||
"device": { | ||
"name": "Mac" | ||
}, | ||
"version": "72.0." | ||
} | ||
}, | ||
{ | ||
"@timestamp": "2020-02-14T22:18:51.843Z", | ||
"related": { | ||
"user": [ | ||
"xxxxxx" | ||
], | ||
"ip": [ | ||
"108.255.197.247" | ||
] | ||
}, | ||
"client": { | ||
"geo": { | ||
"country_name": "United States", | ||
"city_name": "Dublin", | ||
"location": { | ||
"lon": -121.919, | ||
"lat": 37.7201 | ||
}, | ||
"region_name": "California" | ||
}, | ||
"user": { | ||
"full_name": "xxxxxx", | ||
"id": "00u1abvz4pYqdM8ms4x6" | ||
}, | ||
"ip": "108.255.197.247" | ||
}, | ||
"source": { | ||
"geo": { | ||
"continent_name": "North America", | ||
"region_iso_code": "US-CA", | ||
"city_name": "Dublin", | ||
"country_iso_code": "US", | ||
"country_name": "United States", | ||
"region_name": "California", | ||
"location": { | ||
"lon": -121.919, | ||
"lat": 37.7201 | ||
} | ||
}, | ||
"as": { | ||
"number": 7018, | ||
"organization": { | ||
"name": "AT\u0026T Services, Inc." | ||
} | ||
}, | ||
"user": { | ||
"full_name": "xxxxxx", | ||
"id": "00u1abvz4pYqdM8ms4x6" | ||
}, | ||
"ip": "108.255.197.247" | ||
}, | ||
"event": { | ||
"ingested": "2021-02-16T11:12:28.827245800Z", | ||
"kind": "event", | ||
"action": "user.session.end", | ||
"id": "faf7398a-4f77-11ea-97fb-5925e98228bd", | ||
"category": [ | ||
"authentication", | ||
"session" | ||
], | ||
"type": [ | ||
"end", | ||
"user" | ||
], | ||
"outcome": "success" | ||
}, | ||
"okta": { | ||
"actor": { | ||
"id": "00u1abvz4pYqdM8ms4x6", | ||
"display_name": "xxxxxx", | ||
"type": "User", | ||
"alternate_id": "xxxxxx@elastic.co" | ||
}, | ||
"debug_context": { | ||
"debug_data": { | ||
"threat_suspected": "false", | ||
"request_id": "XkccyyMli2Uay2I93ZgRzQAAB0c", | ||
"request_uri": "/login/signout", | ||
"url": "/login/signout?message=login_page_messages.session_has_expired" | ||
} | ||
}, | ||
"event_type": "user.session.end", | ||
"authentication_context": { | ||
"authentication_step": 0, | ||
"external_session_id": "102nZHzd6OHSfGG51vsoc22gw" | ||
}, | ||
"display_message": "User logout from Okta", | ||
"client": { | ||
"zone": "null", | ||
"device": "Computer", | ||
"user_agent": { | ||
"os": "Mac OS X", | ||
"raw_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0", | ||
"browser": "FIREFOX" | ||
}, | ||
"ip": "108.255.197.247" | ||
}, | ||
"uuid": "faf7398a-4f77-11ea-97fb-5925e98228bd", | ||
"outcome": { | ||
"result": "SUCCESS" | ||
}, | ||
"transaction": { | ||
"type": "WEB", | ||
"id": "XkccyyMli2Uay2I93ZgRzQAAB0c" | ||
} | ||
}, | ||
"user": { | ||
"full_name": "xxxxxx" | ||
}, | ||
"user_agent": { | ||
"name": "Firefox", | ||
"original": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0", | ||
"os": { | ||
"name": "Mac OS X", | ||
"version": "10.15", | ||
"full": "Mac OS X 10.15" | ||
}, | ||
"device": { | ||
"name": "Mac" | ||
}, | ||
"version": "72.0." | ||
} | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
packages/okta/data_stream/system/_dev/test/system/test-default-config.yml
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
input: logfile | ||
vars: | ||
keep_original_message: true | ||
paths: | ||
- "{{SERVICE_LOGS_DIR}}/*system*.log" |
Oops, something went wrong.