Skip to content

Commit

Permalink
XSUP-36299 FortiSIEM Fix Fetch Incident (#34053)
Browse files Browse the repository at this point in the history
* Failing UT

* Fixed the issue

* Updated RN
  • Loading branch information
AradCarmi authored Apr 21, 2024
1 parent 647da91 commit 5981297
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Packs/FortiSIEM/Integrations/FortiSIEMV2/FortiSIEMV2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ def format_outputs_time_attributes_to_iso(outputs: List[dict]) -> List[dict]:
for entity in outputs:
for key, value in entity.items():
if any(time_key in key for time_key in time_keys) and value:
entity[key] = FormatIso8601(datetime.fromtimestamp(int(value) / 1000))
entity[key] = FormatIso8601(datetime.fromtimestamp(int(float(value)) / 1000))

return outputs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"attributes": {
"Source TCP/UDP Port": 62835,
"Source Interface SNMP Index": 29034,
"Event Receive Time": 1646760881000,
"Event Receive Time": "0.00",
"Reporting IP": "192.168.30.254",
"IP Protocol": 17,
"Destination Country Code": "US",
Expand Down
6 changes: 6 additions & 0 deletions Packs/FortiSIEM/ReleaseNotes/2_0_35.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### FortiSIEM v2

- Fixed an issue where the **fetch-incident** command failed to parse the time field correctly.
2 changes: 1 addition & 1 deletion Packs/FortiSIEM/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "FortiSIEM",
"description": "Search and update events of FortiSIEM and manage resource lists.",
"support": "xsoar",
"currentVersion": "2.0.34",
"currentVersion": "2.0.35",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 5981297

Please sign in to comment.