MCPcopy Create free account
hub / github.com/adobe/Marinus / __init__

Method __init__

python3_cron_scripts/libs3/SplunkQueryManager.py:54–71  ·  view source on GitHub ↗

Initialize the query manager

(self, config_file="", log_level=None)

Source from the content-addressed store, hash-verified

52 return logging.getLogger(__name__)
53
54 def __init__(self, config_file="", log_level=None):
55 """
56 Initialize the query manager
57 """
58 self._logger = self._log()
59 if log_level is not None:
60 self._logger.setLevel(log_level)
61
62 if self._CLIENT is None:
63 splunk_connector = SplunkConnector.SplunkConnector(config_file)
64 self._CLIENT = splunk_connector.get_splunk_client()
65
66 if self._CLIENT is None:
67 self._logger.error("FATAL: Could not create Splunk client")
68 exit(1)
69
70 self._OFFSET = 0
71 self._COUNT = 100
72
73 def _create_job(self, search_query):
74 """

Callers

nothing calls this directly

Calls 2

_logMethod · 0.95
get_splunk_clientMethod · 0.95

Tested by

no test coverage detected