예제 #1
0
 def __init__(self, auth: MPSIEMAuth, settings: Settings):
     ModuleInterface.__init__(self, auth, settings)
     LoggingHandler.__init__(self)
     self.__core_session = auth.connect(MPComponents.CORE)
     self.__core_hostname = auth.creds.core_hostname
     self.__tables_cache = {}
     self.log.debug('status=success, action=prepare, msg="Table Module init"')
예제 #2
0
 def __init__(self, auth: MPSIEMAuth, settings: Settings):
     ModuleInterface.__init__(self, auth, settings)
     LoggingHandler.__init__(self)
     self.__ms_session = auth.connect(MPComponents.MS)
     self.__ms_hostname = auth.creds.core_hostname
     self.__applications = {}
     self.__roles = {}
     self.__privileges = {}
     self.__users = {}
예제 #3
0
 def __init__(self, auth: MPSIEMAuth, settings: Settings):
     ModuleInterface.__init__(self, auth, settings)
     LoggingHandler.__init__(self)
     self.__kb_session = auth.connect(MPComponents.KB)
     self.__kb_hostname = auth.creds.core_hostname
     self.__rules_mapping = {}
     self.__groups = {}
     self.__folders = {}
     self.__packs = {}
     self.log.debug('status=success, action=prepare, msg="KB Module init"')
예제 #4
0
 def __init__(self, auth: MPSIEMAuth, settings: Settings):
     ModuleInterface.__init__(self, auth, settings)
     LoggingHandler.__init__(self)
     self.__core_session = auth.connect(MPComponents.CORE)
     self.__core_hostname = auth.creds.core_hostname
     self.__agents = {}
     self.__modules = {}
     self.__profiles = {}
     self.__transports = {}
     self.__credentials = {}
     self.__tasks = {}
     self.log.debug(
         'status=success, action=prepare, msg="Tasks Module init"')
예제 #5
0
    def __init__(self, auth: MPSIEMAuth, settings: Settings):
        ModuleInterface.__init__(self, auth, settings)
        LoggingHandler.__init__(self)

        self.__storage_version = auth.get_storage_version()
        self.__storage_hostname = auth.get_creds().storage_hostname
        auth.disconnect(
        )  # не будем пользоваться стандартной сессией, у нас есть модуль ElasticSearch-py
        self.__storage_session = Elasticsearch(
            hosts=self.__storage_hostname,
            port=self.__storage_port,
            timeout=self.settings.connection_timeout)

        self.QueryBuilder = ElasticQueryBuilder(
            self.__storage_version, self.settings.storage_events_timezone,
            self.settings.storage_bucket_size)

        self.log.debug(
            'status=success, action=prepare, msg="Events Module init"')
예제 #6
0
 def __init__(self, current_version: str, timezone: str, bucket_size: int):
     LoggingHandler.__init__(self)
     self.__es_current_version = current_version
     self.__timezone = timezone
     self.__es_bucket_size = bucket_size
예제 #7
0
 def __init__(self, creds, settings: Settings):
     WorkerInterface.__init__(self, creds, settings)
     LoggingHandler.__init__(self)
     self.__module_name = None
예제 #8
0
 def __init__(self, auth: MPSIEMAuth, settings: Settings):
     ModuleInterface.__init__(self, auth, settings)
     LoggingHandler.__init__(self)
     self.__core_session = auth.connect(MPComponents.CORE)
     self.__core_hostname = auth.creds.core_hostname