Skip to content

Commit

Permalink
more rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
punkrokk committed Sep 20, 2023
1 parent 93ebdac commit 919febb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def upload_indicators_to_sentinel(self, token: str, indicators: list):
indicators (list): the list of indicators to upload
Returns:
A response object."""

status_retry = 0
url = "https://sentinelus.azure-api.net/{0}/threatintelligence:upload-indicators".format(self.msal_workspace_id)
headers = {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -267,7 +267,7 @@ def consume_ips(self):
break

except Exception as reqErr:
logging.error("Contacting greynoise API failed: %s" % str(reqErr))
logging.error("Uploading IPs failed: %s" % str(reqErr))
if tries != 0:
tries -= 1
logging.error("Trying again in 10 seconds using same scroll...")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"CLIENT_SECRET": "[parameters('CLIENT_SECRET')]",
"GREYNOISE_CLASSIFICATIONS": "[parameters('GREYNOISE_CLASSIFICATIONS')]",
"GREYNOISE_LIMIT": "0",
"WEBSITE_RUN_FROM_PACKAGE": "https://github.com/Azure/Azure-Sentinel/raw/b201074110668f263fef5d94cb36f0ed6ef5a547/Solutions/GreyNoiseThreatIntelligence/Data%20Connectors/GreyNoiseAPISentinelConn.zip"
"WEBSITE_RUN_FROM_PACKAGE": "https://github.com/Azure/Azure-Sentinel/raw/93ebdac328baff9d484d2958e95ce4b5c674de03/Solutions/GreyNoiseThreatIntelligence/Data%20Connectors/GreyNoiseAPISentinelConn.zip"
}
}
]
Expand Down

0 comments on commit 919febb

Please sign in to comment.