update containers to work with filebeat

This commit is contained in:
Jose Luis Ruiz
2017-01-28 21:29:26 +01:00
parent 8f05ef3ac6
commit b597b78036
10 changed files with 54 additions and 24 deletions
+14 -14
View File
@@ -1,22 +1,22 @@
# Wazuh - Logstash configuration file
## Remote Wazuh Manager - Filebeat input
#input {
# beats {
# port => 5000
# codec => "json_lines"
input {
beats {
port => 5000
codec => "json_lines"
# ssl => true
# ssl_certificate => "/etc/logstash/logstash.crt"
# ssl_key => "/etc/logstash/logstash.key"
# }
#}
## Local Wazuh Manager - JSON file input
input {
file {
type => "wazuh-alerts"
path => "/var/ossec/logs/alerts/alerts.json"
codec => "json"
}
}
}
## Local Wazuh Manager - JSON file input
#input {
# file {
# type => "wazuh-alerts"
# path => "/var/ossec/data/logs/alerts/alerts.json"
# codec => "json"
# }
#}
filter {
geoip {
source => "srcip"
@@ -28,7 +28,7 @@ filter {
}
output {
elasticsearch {
hosts => ["localhost:9200"]
hosts => ["elasticsearch:9200"]
index => "wazuh-alerts-%{+YYYY.MM.dd}"
document_type => "wazuh"
template => "/etc/logstash/wazuh-elastic5-template.json"
-4
View File
@@ -24,7 +24,3 @@ if [ "$1" = 'logstash' ]; then
fi
exec "$@"
#echo "Wait one min to logstash restart"
#sleep 60
#curl -XPUT -v -H "Expect:" "http://elasticsearch:9200/_template/ossec" -d@/etc/logstash/elastic5-ossec-template.json