Exemple #1
0
 def set_elasticsearch_password(password):
     """
     :param password: The new password
     """
     elastiflow_config = elastiflow.ElastiflowConfigurator()
     synesis_config = synesis.SynesisConfigurator()
     elastiflow_config.es_passwd = password
     synesis_config.suricata_es_passwd = password
     elastiflow_config.write_environment_variables()
     synesis_config.write_environment_variables()
Exemple #2
0
 def _setup_elastiflow(self):
     ef_install = elastiflow.ElastiFlowInstaller(
         install_directory=os.path.join(self.configuration_directory,
                                        'elastiflow'))
     ef_install.setup_logstash_elastiflow()
     ef_config = elastiflow.ElastiflowConfigurator()
     ef_config.ipfix_tcp_ipv4_host = self.host
     ef_config.netflow_ipv4_host = self.host
     ef_config.sflow_ipv4_host = self.host
     ef_config.zeek_ipv4_host = self.host
     ef_config.es_host = self.elasticsearch_host + ':' + str(
         self.elasticsearch_port)
     ef_config.es_passwd = self.elasticsearch_password
     ef_config.write_environment_variables()
Exemple #3
0
 def get_elasticsearch_password():
     """
     :return: The password for the given ElasticSearch instance
     """
     elastiflow_config = elastiflow.ElastiflowConfigurator()
     return elastiflow_config.es_passwd