mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
add add_kibana_to_minion to so-minion
This commit is contained in:
@@ -220,7 +220,6 @@ function add_sensor_to_minion() {
|
|||||||
echo " " >> $PILLARFILE
|
echo " " >> $PILLARFILE
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add basic host info to the minion file
|
|
||||||
function add_playbook_to_minion() {
|
function add_playbook_to_minion() {
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
"playbook:"\
|
"playbook:"\
|
||||||
@@ -228,7 +227,6 @@ function add_playbook_to_minion() {
|
|||||||
" " >> $PILLARFILE
|
" " >> $PILLARFILE
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add basic host info to the minion file
|
|
||||||
function add_elastalert_to_minion() {
|
function add_elastalert_to_minion() {
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
"elastalert:"\
|
"elastalert:"\
|
||||||
@@ -236,6 +234,13 @@ function add_elastalert_to_minion() {
|
|||||||
" " >> $PILLARFILE
|
" " >> $PILLARFILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function add_kibana_to_minion() {
|
||||||
|
printf '%s\n'\
|
||||||
|
"kibana:"\
|
||||||
|
" enabled: True"\
|
||||||
|
" " >> $PILLARFILE
|
||||||
|
}
|
||||||
|
|
||||||
function create_fleet_policy() {
|
function create_fleet_policy() {
|
||||||
|
|
||||||
JSON_STRING=$( jq -n \
|
JSON_STRING=$( jq -n \
|
||||||
@@ -284,6 +289,7 @@ function createEVAL() {
|
|||||||
add_logstash_to_minion
|
add_logstash_to_minion
|
||||||
add_sensor_to_minion
|
add_sensor_to_minion
|
||||||
add_elastalert_to_minion
|
add_elastalert_to_minion
|
||||||
|
add_kibana_to_minion
|
||||||
}
|
}
|
||||||
|
|
||||||
function createSTANDALONE() {
|
function createSTANDALONE() {
|
||||||
@@ -292,6 +298,7 @@ function createSTANDALONE() {
|
|||||||
add_sensor_to_minion
|
add_sensor_to_minion
|
||||||
add_playbook_to_minion
|
add_playbook_to_minion
|
||||||
add_elastalert_to_minion
|
add_elastalert_to_minion
|
||||||
|
add_kibana_to_minion
|
||||||
}
|
}
|
||||||
|
|
||||||
function createMANAGER() {
|
function createMANAGER() {
|
||||||
@@ -299,6 +306,7 @@ function createMANAGER() {
|
|||||||
add_logstash_to_minion
|
add_logstash_to_minion
|
||||||
add_playbook_to_minion
|
add_playbook_to_minion
|
||||||
add_elastalert_to_minion
|
add_elastalert_to_minion
|
||||||
|
add_kibana_to_minion
|
||||||
}
|
}
|
||||||
|
|
||||||
function createMANAGERSEARCH() {
|
function createMANAGERSEARCH() {
|
||||||
@@ -306,6 +314,14 @@ function createMANAGERSEARCH() {
|
|||||||
add_logstash_to_minion
|
add_logstash_to_minion
|
||||||
add_playbook_to_minion
|
add_playbook_to_minion
|
||||||
add_elastalert_to_minion
|
add_elastalert_to_minion
|
||||||
|
add_kibana_to_minion
|
||||||
|
}
|
||||||
|
|
||||||
|
function createIMPORT() {
|
||||||
|
add_elasticsearch_to_minion
|
||||||
|
add_logstash_to_minion
|
||||||
|
add_sensor_to_minion
|
||||||
|
add_kibana_to_minion
|
||||||
}
|
}
|
||||||
|
|
||||||
function createFLEET() {
|
function createFLEET() {
|
||||||
@@ -320,12 +336,6 @@ function createIDH() {
|
|||||||
add_idh_to_minion
|
add_idh_to_minion
|
||||||
}
|
}
|
||||||
|
|
||||||
function createIMPORT() {
|
|
||||||
add_elasticsearch_to_minion
|
|
||||||
add_logstash_to_minion
|
|
||||||
add_sensor_to_minion
|
|
||||||
}
|
|
||||||
|
|
||||||
function createHEAVYNODE() {
|
function createHEAVYNODE() {
|
||||||
add_elasticsearch_to_minion
|
add_elasticsearch_to_minion
|
||||||
add_logstash_to_minion
|
add_logstash_to_minion
|
||||||
|
|||||||
Reference in New Issue
Block a user