Skip to content

Commit

Permalink
CyberArk EPM get-events fix query (demisto#34556)
Browse files Browse the repository at this point in the history
* get-events fix query

* RN

* CR fixes
  • Loading branch information
MosheEichler authored May 27, 2024
1 parent f09048d commit 2a7a7a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get_policy_audits(self, set_id: str, from_date: str = '', limit: int = MAX_L
url_suffix = f'Sets/{set_id}/policyaudits/search?nextCursor={next_cursor}&limit={min(limit, MAX_LIMIT)}'
filter_params = f'arrivalTime GE {from_date}'
if self.policy_audits_event_type:
filter_params += f'{filter_params} AND eventType IN {",".join(self.policy_audits_event_type)}'
filter_params += f' AND eventType IN {",".join(self.policy_audits_event_type)}'
data = assign_params(
filter=filter_params,
)
Expand All @@ -107,7 +107,7 @@ def get_events(self, set_id: str, from_date: str = '', limit: int = MAX_LIMIT, n
url_suffix = f'Sets/{set_id}/Events/Search?nextCursor={next_cursor}&limit={min(limit, MAX_LIMIT)}'
filter_params = f'arrivalTime GE {from_date}'
if self.raw_events_event_type:
filter_params += f'{filter_params} AND eventType IN {",".join(self.raw_events_event_type)}'
filter_params += f' AND eventType IN {",".join(self.raw_events_event_type)}'
data = assign_params(
filter=filter_params,
)
Expand Down
6 changes: 6 additions & 0 deletions Packs/CyberArkEPM/ReleaseNotes/1_0_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### CyberArk EPM Event Collector

Fixed an issue where the ***fetch-incidents*** command returned an internal server error.
6 changes: 4 additions & 2 deletions Packs/CyberArkEPM/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"name": "CyberArk EPM",
"description": "Endpoint Privilege Manager helps remove local admin rights while improving user experience and optimizing IT operations.",
"support": "xsoar",
"currentVersion": "1.0.0",
"currentVersion": "1.0.1",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
"categories": ["Analytics & SIEM"],
"categories": [
"Analytics & SIEM"
],
"tags": [],
"useCases": [],
"keywords": [],
Expand Down

0 comments on commit 2a7a7a8

Please sign in to comment.