forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XSUP-39406-o365-parsing-update (demisto#35827)
* Updated ParsingRules, README * Updated ReleaseNotes * Updated ReleaseNotes * Updated ParsingRules * Updated README * Update Packs/Office365/README.md Co-authored-by: ShirleyDenkberg <[email protected]> * Update Packs/Office365/ReleaseNotes/1_0_4.md Co-authored-by: ShirleyDenkberg <[email protected]> --------- Co-authored-by: ShirleyDenkberg <[email protected]>
- Loading branch information
1 parent
23696f5
commit 71745e6
Showing
4 changed files
with
41 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,39 @@ | ||
[INGEST:vendor="msft", product="o365_general", target_dataset="msft_o365_general_raw", no_hit=keep] | ||
filter to_string(CreationTime) ~= ".*\d{2}:\d{2}:\d{2}.*" | ||
filter to_string(CreationTime) ~= "UTC|:\d{2}(?:[\.\d]+)?Z" | ||
| alter | ||
_time = CreationTime; | ||
tmp_string_CreationTime = to_string(CreationTime) | ||
| alter | ||
tmp_check_format = if(tmp_string_CreationTime ~= "UTC", parse_timestamp("%Y-%m-%d %H:%M:%E*S %Z", tmp_string_CreationTime), tmp_string_CreationTime ~= ":\d{2}(?:[\.\d]+)?Z", parse_timestamp("%Y-%m-%dT%H:%M:%E*SZ", tmp_string_CreationTime)) | ||
| alter | ||
_time = tmp_check_format | ||
| fields -tmp*; | ||
|
||
[INGEST:vendor="msft", product="o365_exchange_online", target_dataset="msft_o365_exchange_online_raw", no_hit=keep] | ||
filter to_string(CreationTime) ~= ".*\d{2}:\d{2}:\d{2}.*" | ||
filter to_string(CreationTime) ~= "UTC|:\d{2}(?:[\.\d]+)?Z" | ||
| alter | ||
tmp_string_CreationTime = to_string(CreationTime) | ||
| alter | ||
tmp_check_format = if(tmp_string_CreationTime ~= "UTC", parse_timestamp("%Y-%m-%d %H:%M:%E*S %Z", tmp_string_CreationTime), tmp_string_CreationTime ~= ":\d{2}(?:[\.\d]+)?Z", parse_timestamp("%Y-%m-%dT%H:%M:%E*SZ", tmp_string_CreationTime)) | ||
| alter | ||
_time = CreationTime; | ||
_time = tmp_check_format | ||
| fields -tmp*; | ||
|
||
[INGEST:vendor="msft", product="o365_sharepoint_online", target_dataset="msft_o365_sharepoint_online_raw", no_hit=keep] | ||
filter to_string(CreationTime) ~= ".*\d{2}:\d{2}:\d{2}.*" | ||
filter to_string(CreationTime) ~= "UTC|:\d{2}(?:[\.\d]+)?Z" | ||
| alter | ||
_time = CreationTime; | ||
tmp_string_CreationTime = to_string(CreationTime) | ||
| alter | ||
tmp_check_format = if(tmp_string_CreationTime ~= "UTC", parse_timestamp("%Y-%m-%d %H:%M:%E*S %Z", tmp_string_CreationTime), tmp_string_CreationTime ~= ":\d{2}(?:[\.\d]+)?Z", parse_timestamp("%Y-%m-%dT%H:%M:%E*SZ", tmp_string_CreationTime)) | ||
| alter | ||
_time = tmp_check_format | ||
| fields -tmp*; | ||
|
||
[INGEST:vendor="msft", product="o365_dlp", target_dataset="msft_o365_dlp_raw", no_hit=keep] | ||
filter to_string(CreationTime) ~= ".*\d{2}:\d{2}:\d{2}.*" | ||
filter to_string(CreationTime) ~= "UTC|:\d{2}(?:[\.\d]+)?Z" | ||
| alter | ||
tmp_string_CreationTime = to_string(CreationTime) | ||
| alter | ||
tmp_check_format = if(tmp_string_CreationTime ~= "UTC", parse_timestamp("%Y-%m-%d %H:%M:%E*S %Z", tmp_string_CreationTime), tmp_string_CreationTime ~= ":\d{2}(?:[\.\d]+)?Z", parse_timestamp("%Y-%m-%dT%H:%M:%E*SZ", tmp_string_CreationTime)) | ||
| alter | ||
_time = CreationTime; | ||
_time = tmp_check_format | ||
| fields -tmp*; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
#### Parsing Rules | ||
|
||
##### Office 365 Parsing Rule | ||
|
||
Updated the Parsing Rule logic, ingesting specific UTC time formats from the CreationTime field. |
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