Merge pull request #55 from weslambert/master

More Wazuh updates
This commit is contained in:
Mike Reeves
2018-12-13 13:01:38 -05:00
committed by GitHub
6 changed files with 23 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ filebeat.modules:
# List of prospectors to fetch data. # List of prospectors to fetch data.
filebeat.prospectors: filebeat.prospectors:
#------------------------------ Log prospector -------------------------------- #------------------------------ Log prospector --------------------------------
{%- if grains['role'] == 'so-sensor' or grains['role'] == "so-eval" %}
{%- if BROVER != 'SURICATA' %} {%- if BROVER != 'SURICATA' %}
{%- for LOGNAME in salt['pillar.get']('brologs:enabled', '') %} {%- for LOGNAME in salt['pillar.get']('brologs:enabled', '') %}
- type: log - type: log
@@ -36,6 +37,7 @@ filebeat.prospectors:
fields_under_root: true fields_under_root: true
clean_removed: false clean_removed: false
close_removed: false close_removed: false
{%- endif %}
{%- if WAZUHENABLED == '1' %} {%- if WAZUHENABLED == '1' %}
@@ -73,7 +75,6 @@ output.logstash:
# Set gzip compression level. # Set gzip compression level.
compression_level: 3 compression_level: 3
# Enable SSL support. SSL is automatically enabled, if any SSL setting is set. # Enable SSL support. SSL is automatically enabled, if any SSL setting is set.
ssl.enabled: true ssl.enabled: true
@@ -97,7 +98,6 @@ output.logstash:
# Client Certificate Key # Client Certificate Key
ssl.key: "/usr/share/filebeat/filebeat.key" ssl.key: "/usr/share/filebeat/filebeat.key"
# Elasticsearch template settings # Elasticsearch template settings
#setup.template.settings: #setup.template.settings:

View File

@@ -63,8 +63,13 @@ so-filebeat:
- /opt/so/log/suricata:/suricata:ro - /opt/so/log/suricata:/suricata:ro
- /opt/so/wazuh/logs/alerts/:/wazuh/alerts:ro - /opt/so/wazuh/logs/alerts/:/wazuh/alerts:ro
- /opt/so/wazuh/logs/archives/:/wazuh/archives:ro - /opt/so/wazuh/logs/archives/:/wazuh/archives:ro
{%- if grains['role'] == 'so-master' %}
- /etc/pki/filebeat.crt:/usr/share/filebeat/filebeat.crt:ro
- /etc/pki/filebeat.key:/usr/share/filebeat/filebeat.key:ro
{%- else %}
- /opt/so/conf/filebeat/etc/pki/filebeat.crt:/usr/share/filebeat/filebeat.crt:ro - /opt/so/conf/filebeat/etc/pki/filebeat.crt:/usr/share/filebeat/filebeat.crt:ro
- /opt/so/conf/filebeat/etc/pki/filebeat.key:/usr/share/filebeat/filebeat.key:ro - /opt/so/conf/filebeat/etc/pki/filebeat.key:/usr/share/filebeat/filebeat.key:ro
{%- endif %}
- /etc/ssl/certs/intca.crt:/usr/share/filebeat/intraca.crt:ro - /etc/ssl/certs/intca.crt:/usr/share/filebeat/intraca.crt:ro
- watch: - watch:
- file: /opt/so/conf/filebeat/etc - file: /opt/so/conf/filebeat/etc

View File

@@ -10,7 +10,7 @@
{% elif grains['role'] == 'so-sensor'%} {% elif grains['role'] == 'so-sensor'%}
{%- set ip = salt['pillar.get']('node:mainip', '') %} {%- set ip = salt['pillar.get']('sensor:mainip', '') %}
{% endif %} {% endif %}

View File

@@ -10,6 +10,7 @@ base:
{%- if BROVER != 'SURICATA' %} {%- if BROVER != 'SURICATA' %}
- bro - bro
{%- endif %} {%- endif %}
- wazuh
- filebeat - filebeat
- schedule - schedule
@@ -49,6 +50,8 @@ base:
- logstash - logstash
- kibana - kibana
- elastalert - elastalert
- wazuh
- filebeat
- utility - utility
- schedule - schedule
- fleet - fleet
@@ -87,6 +90,8 @@ base:
- logstash - logstash
- elasticsearch - elasticsearch
- curator - curator
- wazuh
- filebeat
- schedule - schedule
'G@role:mastersensor': 'G@role:mastersensor':

View File

@@ -1,5 +1,9 @@
{%- if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %} {%- if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %}
{%- set ip = salt['pillar.get']('static:masterip', '') %} {%- set ip = salt['pillar.get']('static:masterip', '') %}
{%- elif grains['role'] == 'so-node' }
{%- set ip = salt['pillar.get']('node:mainip', '') %}
{%- elif grains['role'] == 'so-sensor' }
{%- set ip = salt['pillar.get']('sensor:mainip', '') %}
{%- endif %} {%- endif %}
<!-- <!--
Wazuh - Agent - Default configuration for ubuntu 16.04 Wazuh - Agent - Default configuration for ubuntu 16.04

View File

@@ -1,4 +1,10 @@
{%- if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %}
{%- set ip = salt['pillar.get']('static:masterip', '') %} {%- set ip = salt['pillar.get']('static:masterip', '') %}
{%- elif grains['role'] == 'so-node' }
{%- set ip = salt['pillar.get']('node:mainip', '') %}
{%- elif grains['role'] == 'so-sensor' }
{%- set ip = salt['pillar.get']('sensor:mainip', '') %}
{%- endif %}
#!/bin/bash #!/bin/bash
### ###