enable/disable logstash in ui

This commit is contained in:
m0duspwnens
2023-05-10 11:16:03 -04:00
parent c5e5763014
commit a0ce46e702
11 changed files with 320 additions and 246 deletions

View File

@@ -165,6 +165,7 @@ function add_logstash_to_minion() {
# Create the logstash advanced pillar
printf '%s\n'\
"logstash:"\
" enabled: True"\
" config:"\
" pipeline_x_workers: $CPUCORES"\
" settings:"\
@@ -241,6 +242,7 @@ function add_kibana_to_minion() {
" " >> $PILLARFILE
}
function create_fleet_policy() {
JSON_STRING=$( jq -n \
@@ -286,7 +288,6 @@ function apply_ES_state() {
}
function createEVAL() {
add_elasticsearch_to_minion
add_logstash_to_minion
add_sensor_to_minion
add_elastalert_to_minion
add_kibana_to_minion
@@ -319,7 +320,6 @@ function createMANAGERSEARCH() {
function createIMPORT() {
add_elasticsearch_to_minion
add_logstash_to_minion
add_sensor_to_minion
add_kibana_to_minion
}
@@ -353,6 +353,10 @@ function createSEARCHNODE() {
apply_ES_state
}
function createRECEIVER() {
add_logstash_to_minion
}
function testConnection() {
retry 15 3 "salt '$MINION_ID' test.ping" True