Skip to content

Commit 41fd566

Browse files
authored
fix akamai docker outputs collision (#38996)
* mid save * test without throwing error from send_Events with return_error * catch an error in Akamai while waiting for futures and return a regular error * test * test * created smaller case * review * smallest reproduce * in progress * mid save * added handling * added rn * reverts * reverts * reverts * reverts * fixes
1 parent e9daf02 commit 41fd566

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

Packs/Akamai_SIEM/Integrations/Akamai_SIEM/Akamai_SIEM.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,8 +1206,16 @@ def main(): # pragma: no cover
12061206
multiple_threads=True, data_format="json")
12071207
demisto.info("Finished executing send_events_to_xsiam, waiting for futures to end.")
12081208
data_size = 0
1209+
should_fail = False
12091210
for future in concurrent.futures.as_completed(futures):
1210-
data_size += future.result()
1211+
try:
1212+
data_size += future.result()
1213+
except Exception as e:
1214+
demisto.info(f"Got an error when executing send_events_to_xsiam: {e}")
1215+
should_fail = True
1216+
if should_fail:
1217+
raise DemistoException(
1218+
"Encountered an error while sending events to xsiam, will attempt to send all events to xsiam again.")
12111219
demisto.info(f"Done sending {data_size} events to xsiam."
12121220
f"sent {total_events_count} events to xsiam in total during this interval.")
12131221
set_integration_context({"offset": offset})
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### Akamai WAF SIEM
5+
6+
- Fixed an issue where fetch-events would fail with docker code loop error when failing to **send_events_to_xsiam** in verbose mode.

Packs/Akamai_SIEM/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Akamai WAF SIEM",
33
"description": "Use the Akamai WAF SIEM integration to retrieve security events from Akamai Web Application Firewall (WAF) service.",
44
"support": "xsoar",
5-
"currentVersion": "1.2.3",
5+
"currentVersion": "1.2.4",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

0 commit comments

Comments
 (0)