-
Notifications
You must be signed in to change notification settings - Fork 111
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
feat: Support multiple destinations for a healthcheck #2704
feat: Support multiple destinations for a healthcheck #2704
Conversation
8e6388b
to
e2272c6
Compare
if re.search(regex, var_key): | ||
found_destinations.append(var_variable) | ||
return set(found_destinations) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be imported from:
regex = r"^SC4S_DEST_SPLUNK_HEC_(.*)_URL$" |
But a dot in "conf.d" is causing an import issue. Something to think about later I guess
@@ -14,11 +15,20 @@ def str_to_bool(value): | |||
'yes' | |||
} | |||
|
|||
def get_list_of_destinations(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just have 2 questions:
- Are we planning to backport same logic from
health check api
to healthcheck - Are we planning to add same logic on entry point during startup (where we checking that default destination is healthy, probably we also need to check not only default)
P.S. It's just a questions, it doesn't mean that we need to do asap, we will just discuss it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As for:
- I think that this is too unrelated. In this dockerfile we are checking for syslog-ng before SC4S is initialised. We "could" also check for HEC health but I'm not sure if this change makes sense.
- Similar thing really. In this line we are checking mostly for HEC token and default endpoint. I could see a separate check for other HEC endpoints - it could even use the method I just implemented, but it should probably just show warnings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mstopa-splunk @rjha-splunk - we can talk about this on our sc4s meeting
…estinations_healthcheck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rjha-splunk @mstopa-splunk can you please take a look on this comment https://github.com/splunk/splunk-connect-for-syslog/pull/2704/files#r1963384996
No description provided.