-
Notifications
You must be signed in to change notification settings - Fork 33
feat: Allow using contentctl to send data trough EP with hec (ADDON-82127) #428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -1481,16 +1481,19 @@ def hec_raw_replay( | |||||
"host": attack_data_file.host or self.sync_obj.replay_host, | ||||||
} | ||||||
|
||||||
if self.infrastructure.instance_address.strip().lower().startswith("https://"): | ||||||
address_with_scheme = self.infrastructure.instance_address.strip().lower() | ||||||
elif self.infrastructure.instance_address.strip().lower().startswith("http://"): | ||||||
hec_instance_address = ( | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] Normalize Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
self.infrastructure.hec_instance_address | ||||||
if self.infrastructure.hec_instance_address | ||||||
else self.infrastructure.instance_address | ||||||
) | ||||||
if hec_instance_address.strip().lower().startswith("https://"): | ||||||
address_with_scheme = hec_instance_address.strip().lower() | ||||||
elif hec_instance_address.strip().lower().startswith("http://"): | ||||||
address_with_scheme = ( | ||||||
self.infrastructure.instance_address.strip() | ||||||
.lower() | ||||||
.replace("http://", "https://") | ||||||
hec_instance_address.strip().lower().replace("http://", "https://") | ||||||
) | ||||||
else: | ||||||
address_with_scheme = f"https://{self.infrastructure.instance_address}" | ||||||
address_with_scheme = f"https://{hec_instance_address}" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] Apply
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
|
||||||
# Generate the full URL, including the host, the path, and the params. | ||||||
# We can be a lot smarter about this (and pulling the port from the url, checking | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.