You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting exception frequently while pushing logs to Splunk UAT server.Our python jobs get failed due to this whenevery splunk service is unavailable.
Exception 503 Server Error:Service unavailable for url:splnk_host_url
Please suggest how to catch this specific exception and how can we make any retry logic like retry to 3-4 times to reconnect splunk server so that our jobs are not get failed. is there any retry param to pass
I am using pass statement in except still jobs get failed when 503 exception.
try:
splunk_handler = SplunkHecHandler('splunkfw.domain.tld',
'EA33046C-6FEC-4DC0-AC66-4326E58B54C3',
port=8888, proto='https', ssl_verify=True,
source="HEC_example")
logger.addHandler(splunk_handler)
logger.info("Testing Splunk HEC Info message")
except Exception as e:
pass
Thanks
Sarvendra
The text was updated successfully, but these errors were encountered:
HI Team,
I am getting exception frequently while pushing logs to Splunk UAT server.Our python jobs get failed due to this whenevery splunk service is unavailable.
Exception 503 Server Error:Service unavailable for url:splnk_host_url
Please suggest how to catch this specific exception and how can we make any retry logic like retry to 3-4 times to reconnect splunk server so that our jobs are not get failed. is there any retry param to pass
I am using pass statement in except still jobs get failed when 503 exception.
try:
splunk_handler = SplunkHecHandler('splunkfw.domain.tld',
'EA33046C-6FEC-4DC0-AC66-4326E58B54C3',
port=8888, proto='https', ssl_verify=True,
source="HEC_example")
logger.addHandler(splunk_handler)
logger.info("Testing Splunk HEC Info message")
except Exception as e:
pass
Thanks
Sarvendra
The text was updated successfully, but these errors were encountered: