ELK merge - includes new Elastalert, Logstash, Kibana, Elastalert, Auditbeat, Filebeat modules and other misc changes.

This commit is contained in:
thomashaw
2021-11-15 19:13:09 +00:00
parent fcf457711e
commit 7c71c45d29
314 changed files with 4946 additions and 19102 deletions

15
lib/helpers/scenario.rb Normal file
View File

@@ -0,0 +1,15 @@
class ScenarioHelper
def self.get_scenario_name(scenario_path)
scenario_path.split('/').last.split('.').first + '-'
end
def self.get_prefix(options, scenario_name)
options[:prefix] ? (options[:prefix] + '-' + scenario_name) : ('SecGen-' + scenario_name)
end
def self.get_hostname(options, scenario_path, system_name)
"#{get_prefix(options, get_scenario_name(scenario_path))}#{system_name}".tr('_', '-')
end
end