Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated parsing rules for JuniperSRX * Removed extra // from the comment and added release note * Added filter to SonicWallNSvParsingRules * Added release note to SonicWallNSvParsingRules * Added release note to SonicWallNSvParsingRules * Added filter to Tenable_ioParsingRules * Added release note to Tenable_ioParsingRules * Update Packs/Tenable_io/ReleaseNotes/2_1_10.md Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Update Packs/JuniperSRX/ReleaseNotes/1_0_9.md Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Update Packs/SonicWallNSv/ReleaseNotes/1_0_1.md Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * Modified Tenable_io ParsingRules. * Added filter to juniper srx * Added filter to juniper srx --------- Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
- Loading branch information
Showing
11 changed files
with
69 additions
and
22 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,14 +1,20 @@ | ||
[INGEST:vendor="juniper", product="srx", target_dataset="juniper_srx_raw", no_hit = keep] | ||
// event time 1 | ||
alter tmp_event_time1 = arrayindex(regextract(_raw_log , "^(\w+\s+\d+\s+\d+\:\d+\:\d+)"),0) | ||
,tmp_year = format_timestamp("%Y",_insert_time ) | ||
| alter tmp_event_time1 = parse_timestamp("%b %d %H:%M:%S %Y",concat(tmp_event_time1, " ", tmp_year)) | ||
// event time 2 | ||
| alter tmp_split_event_time2 = split(arrayindex(regextract(_raw_log , "\>\d+\s+(\d+\-\d+\-\d+T\d+\:\d+\:\d+\.\d+)"),0),".") | ||
| alter tmp_time2_epoch_s = to_epoch(parse_timestamp("%Y-%m-%dT%H:%M:%S", arrayindex(tmp_split_event_time2 ,0)), "millis") | ||
,tmp_time2_epoch_ms = to_integer(arrayindex(tmp_split_event_time2 , 1)) | ||
| alter tmp_cc = add(tmp_time2_epoch_s , tmp_time2_epoch_ms ) | ||
| alter tmp_event_time2 = to_timestamp(tmp_cc, "millis") | ||
// | ||
| alter _time = coalesce(tmp_event_time1, tmp_event_time2) | ||
| fields - tmp_event_time1 , tmp_year , tmp_event_time2 , tmp_time2_epoch_ms , tmp_time2_epoch_s , tmp_cc , tmp_split_event_time2; | ||
// Support only date time of format: yyyy-MM-ddThh:mm:%E3S or format: MMM dd hh:mm:ss. For example: "2021-12-08T10:00:00.665" or "Nov 10 10:00:00". | ||
filter _raw_log ~= "\w+\s+\d+\s+\d+\:\d+\:\d+" or _raw_log ~= "\>\d+\s+\d+\-\d+\-\d+T\d+\:\d+\:\d+\.\d+" | ||
// Parsing time format 1 | ||
| alter tmp_time1 = arrayindex(regextract(_raw_log , "^(\w+\s+\d+\s+\d+\:\d+\:\d+)"),0), | ||
tmp_Year = format_timestamp("%Y",_insert_time) | ||
| alter tmp_time1_1 = concat(tmp_Year, " ", tmp_time1) | ||
| alter tmp_time1_1 = parse_timestamp("%Y %b %e %H:%M:%S", tmp_time1_1) | ||
| alter tmp_timeDiff = timestamp_diff(tmp_time1_1, current_time(), "DAY") | ||
// Check if the date is a future date | ||
| alter tmp_Year2 = if(tmp_timeDiff > 0, to_string(subtract(to_integer(tmp_Year),1)),null) | ||
// Create timestamp minus 1 year if the timestamp is a future one | ||
| alter tmp_time1_2 = if(tmp_Year2 != null, concat(tmp_Year2, " ", tmp_time1), null) | ||
| alter tmp_time1_2 = if(tmp_time1_2 != null, parse_timestamp("%Y %b %e %H:%M:%S", tmp_time1_2), null) | ||
| alter tmp_time1 = coalesce(tmp_time1_2, tmp_time1_1) | ||
// Parsing time format 2 | ||
| alter tmp_time2 = arrayindex(regextract(_raw_log , "\>\d+\s+(\d+\-\d+\-\d+T\d+\:\d+\:\d+\.\d+)"),0) | ||
| alter tmp_time2 = parse_timestamp("%Y-%m-%dT%H:%M:%E3S", tmp_time2) | ||
| alter _time = coalesce(tmp_time1, tmp_time2) | ||
| fields -tmp_time1, tmp_Year, tmp_time1_1, tmp_timeDiff, tmp_Year2, tmp_time1_2, tmp_time2; |
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,3 @@ | ||
#### Parsing Rules | ||
##### JuniperSRX Parsing Rule | ||
Added a filter in the parsing rule to enhance its logic. |
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
9 changes: 5 additions & 4 deletions
9
Packs/SonicWallNSv/ParsingRules/SonicWallNSvParsingRules/SonicWallNSvParsingRules.xif
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,5 +1,6 @@ | ||
[INGEST:vendor="sonicwall", product="ns", target_dataset="sonicwall_ns_raw", no_hit=keep] | ||
filter _raw_log contains "UTC" | ||
|alter timestamp=arrayindex(regextract(_raw_log,"time\=\"([^=]+)\sUTC\""),0) | ||
|alter _time=parse_timestamp("%Y-%m-%d %H:%M:%S", timestamp) | ||
|fields -timestamp; | ||
// Support only date time of format: yyyy-MM-dd hh:mm:ss. For example: "2021-12-08 10:00:00". | ||
filter _raw_log ~= "time\=\"(\d{4,}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\sUTC\"" | ||
| alter timestamp = arrayindex(regextract(_raw_log,"time\=\"([^=]+)\sUTC\""),0) | ||
| alter _time = parse_timestamp("%Y-%m-%d %H:%M:%S", timestamp) | ||
| fields -timestamp; |
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,3 @@ | ||
#### Parsing Rules | ||
##### SonicwallNSv Parsing Rule | ||
Added a filter in the parsing rule to enhance its logic. |
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
3 changes: 2 additions & 1 deletion
3
Packs/Tenable_io/ParsingRules/Tenable_ioParsingRules/Tenable_ioParsingRules.xif
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,2 +1,3 @@ | ||
[INGEST:vendor="tenable", product="io", target_dataset="tenable_io_raw", no_hit=keep] | ||
alter _time = coalesce(received, indexed); | ||
filter to_string(received) ~= "\d{2}:\d{2}:\d{2}.*" or to_string(indexed) ~= "\d{2}:\d{2}:\d{2}.*" | ||
| alter _time = coalesce(received, indexed); |
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,3 @@ | ||
#### Parsing Rules | ||
##### Tenable.io Parsing Rule | ||
Added a filter in the parsing rule to enhance its logic. |
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