Skip to content

Commit

Permalink
Microsoft Graph Security - add debug log prints (demisto#10026)
Browse files Browse the repository at this point in the history
* add debug log prints

* rm time now from last run

* rm debug logs

* add rn and bump docker image
  • Loading branch information
Itay4 committed Nov 22, 2020
1 parent a6b0cfb commit 8068abf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def fetch_incidents(client: MsGraphClient, fetch_time: str, fetch_limit: int, fi
time_to = datetime.now().strftime(timestamp_format)

# Get incidents from MS Graph Security
demisto.debug(f'Fetching MS Graph Security incidents. From: {time_from}. To: {time_to}\n')
demisto.debug(f'Fetching MS Graph Security incidents. From: {time_from}. To: {time_to}. Filter: {filter_query}')
incidents = client.search_alerts(last_modified=None, severity=None, category=None, vendor=None, time_from=time_from,
time_to=time_to, filter_query=filter_query)['value']

Expand All @@ -148,8 +148,6 @@ def fetch_incidents(client: MsGraphClient, fetch_time: str, fetch_limit: int, fi
last_incident_time = demisto_incidents[-1].get('occurred')
new_last_run.update({'time': last_incident_time})

if not demisto_incidents:
new_last_run.update({'time': time_to})
demisto.setLastRun(new_last_run)
return demisto_incidents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ script:
- contextPath: MsGraph.User.Name
description: User name
type: string
dockerimage: demisto/crypto:1.0.0.11412
dockerimage: demisto/crypto:1.0.0.12979
feed: false
isfetch: true
longRunning: false
Expand Down
5 changes: 5 additions & 0 deletions Packs/MicrosoftGraphSecurity/ReleaseNotes/2_0_5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

#### Integrations
##### Microsoft Graph Security
- Fixed an issue where alerts were not pulled in the fetch incidents flow.
- Upgraded the Docker image to demisto/crypto:1.0.0.12979.
2 changes: 1 addition & 1 deletion Packs/MicrosoftGraphSecurity/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Microsoft Graph Security",
"description": "Unified gateway to security insights - all from a unified Microsoft Graph\n Security API.",
"support": "xsoar",
"currentVersion": "2.0.4",
"currentVersion": "2.0.5",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 8068abf

Please sign in to comment.