diff --git a/files/master b/files/master index f14c4194c..fea77c2f7 100644 --- a/files/master +++ b/files/master @@ -12,6 +12,7 @@ # modified files cause conflicts, set verify_env to False. # user: socore +log_file: /opt/so/log/salt/master ##### File Server settings ##### ########################################## diff --git a/salt/elasticsearch/init.sls b/salt/elasticsearch/init.sls index 47fd6a0a6..11284c830 100644 --- a/salt/elasticsearch/init.sls +++ b/salt/elasticsearch/init.sls @@ -145,7 +145,9 @@ so-elasticsearch-pipelines: cmd.run: - name: /opt/so/conf/elasticsearch/so-elasticsearch-pipelines {{ esclustername }} +{% if grains['role'] == 'so-master' or grains['role'] == "so-eval" or grains['role'] == "so-mastersearch" %} so-elasticsearch-templates: cmd.run: - name: /usr/sbin/so-elasticsearch-templates - - cwd: /opt/so \ No newline at end of file + - cwd: /opt/so +{% endif %} \ No newline at end of file diff --git a/salt/filebeat/etc/filebeat.yml b/salt/filebeat/etc/filebeat.yml index 7fa8dab3e..c5e7b0b13 100644 --- a/salt/filebeat/etc/filebeat.yml +++ b/salt/filebeat/etc/filebeat.yml @@ -111,7 +111,7 @@ filebeat.inputs: clean_removed: false close_removed: false - {%- if STRELKAENABLED == '1' %} + {%- if STRELKAENABLED == 1 %} - type: log paths: @@ -132,7 +132,7 @@ filebeat.inputs: {%- endif %} {%- endif %} -{%- if WAZUHENABLED == '1' %} +{%- if WAZUHENABLED == 1 %} - type: log paths: diff --git a/setup/so-functions b/setup/so-functions index 00a9c9ac9..95dee4d33 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -325,7 +325,8 @@ configure_minion() { echo "use_superseded:" >> /etc/salt/minion echo " - module.run" >> /etc/salt/minion - + echo "log_file: /opt/so/log/salt/minion" >> /etc/salt/minion + service salt-minion restart }