mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-04 22:13:23 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78bf058a9f | ||
|
|
bed3307dfc | ||
|
|
835466f25b | ||
|
|
df7c963eab | ||
|
|
f6ad536e99 | ||
|
|
e6e30ab3aa | ||
|
|
754915cb35 |
@@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
The first time than you runt this container can take a while until kibana finish the configuration, the Wazuh plugin can take a few minutes until finish the instalation, please be patient.
|
The first time than you runt this container can take a while until kibana finish the configuration, the Wazuh plugin can take a few minutes until finish the instalation, please be patient.
|
||||||
|
|
||||||
# Docker container Wazuh + ELK(5.3.0)
|
# Docker container Wazuh 2.0 + ELK(5.4.2)
|
||||||
|
|
||||||
This Docker container source files can be found in our [Wazuh Github repository](https://github.com/wazuh/wazuh). It includes both an OSSEC manager and an Elasticsearch single-node cluster, with Logstash and Kibana. You can find more information on how these components work together in our documentation.
|
This Docker container source files can be found in our [Wazuh Github repository](https://github.com/wazuh/wazuh). It includes both an OSSEC manager and an Elasticsearch single-node cluster, with Logstash and Kibana. You can find more information on how these components work together in our documentation.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
* [Full documentation](http://documentation.wazuh.com)
|
* [Full documentation](http://documentation.wazuh.com)
|
||||||
* [Wazug-docker module documentation](https://documentation.wazuh.com/current/docker/index.html)
|
* [Wazuh-docker module documentation](https://documentation.wazuh.com/current/docker/index.html)
|
||||||
* [Hub docker](https://hub.docker.com/u/wazuh)
|
* [Hub docker](https://hub.docker.com/u/wazuh)
|
||||||
|
|
||||||
## Credits and thank you
|
## Credits and thank you
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- LS_HEAP_SIZE=2048m
|
- LS_HEAP_SIZE=2048m
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: elasticsearch:5.3.0
|
image: elasticsearch:5.4.2
|
||||||
hostname: elasticsearch
|
hostname: elasticsearch
|
||||||
restart: always
|
restart: always
|
||||||
command: elasticsearch -E node.name="node-1" -E cluster.name="wazuh" -E network.host=0.0.0.0
|
command: elasticsearch -E node.name="node-1" -E cluster.name="wazuh" -E network.host=0.0.0.0
|
||||||
@@ -61,7 +61,7 @@ services:
|
|||||||
- elasticsearch
|
- elasticsearch
|
||||||
entrypoint: sh wait-for-it.sh elasticsearch
|
entrypoint: sh wait-for-it.sh elasticsearch
|
||||||
# environment:
|
# environment:
|
||||||
# - "WAZUH_KIBANA_PLUGIN_URL=http://your.repo/wazuhapp-2.0_5.3.0.zip"
|
# - "WAZUH_KIBANA_PLUGIN_URL=http://your.repo/wazuhapp-2.0_5.4.2.zip"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
docker_elk:
|
docker_elk:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM kibana:5.3.0
|
FROM kibana:5.4.2
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y curl
|
RUN apt-get update && apt-get install -y curl
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ set -e
|
|||||||
host="$1"
|
host="$1"
|
||||||
shift
|
shift
|
||||||
cmd="kibana"
|
cmd="kibana"
|
||||||
WAZUH_KIBANA_PLUGIN_URL=${WAZUH_KIBANA_PLUGIN_URL:-https://packages.wazuh.com/wazuhapp/wazuhapp-2.0_5.3.0.zip}
|
WAZUH_KIBANA_PLUGIN_URL=${WAZUH_KIBANA_PLUGIN_URL:-https://packages.wazuh.com/wazuhapp/wazuhapp-2.0_5.4.2.zip}
|
||||||
|
|
||||||
until curl -XGET $host:9200; do
|
until curl -XGET $host:9200; do
|
||||||
>&2 echo "Elastic is unavailable - sleeping"
|
>&2 echo "Elastic is unavailable - sleeping"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM logstash:5.3.0
|
FROM logstash:5.4.2
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ input {
|
|||||||
#input {
|
#input {
|
||||||
# file {
|
# file {
|
||||||
# type => "wazuh-alerts"
|
# type => "wazuh-alerts"
|
||||||
# path => "/var/ossec/data/logs/alerts/alerts.json"
|
# path => "/var/ossec/logs/alerts/alerts.json"
|
||||||
# codec => "json"
|
# codec => "json"
|
||||||
# }
|
# }
|
||||||
#}
|
#}
|
||||||
@@ -21,13 +21,14 @@ filter {
|
|||||||
geoip {
|
geoip {
|
||||||
source => "srcip"
|
source => "srcip"
|
||||||
target => "GeoLocation"
|
target => "GeoLocation"
|
||||||
|
fields => ["city_name", "continent_code", "country_code2", "country_name", "region_name", "location"]
|
||||||
}
|
}
|
||||||
date {
|
date {
|
||||||
match => ["timestamp", "ISO8601"]
|
match => ["timestamp", "ISO8601"]
|
||||||
target => "@timestamp"
|
target => "@timestamp"
|
||||||
}
|
}
|
||||||
mutate {
|
mutate {
|
||||||
remove_field => [ "timestamp", "beat", "fields", "input_type", "tags", "count" ]
|
remove_field => [ "timestamp", "beat", "fields", "input_type", "tags", "count", "@version", "log", "offset", "type"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
output {
|
output {
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ RUN chmod 755 /init.bash &&\
|
|||||||
sync && rm /init.bash
|
sync && rm /init.bash
|
||||||
|
|
||||||
|
|
||||||
RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.1.2-x86_64.rpm &&\
|
RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.4.2-x86_64.rpm &&\
|
||||||
rpm -vi filebeat-5.1.2-x86_64.rpm && rm filebeat-5.1.2-x86_64.rpm
|
rpm -vi filebeat-5.4.2-x86_64.rpm && rm filebeat-5.4.2-x86_64.rpm
|
||||||
|
|
||||||
COPY config/filebeat.yml /etc/filebeat/
|
COPY config/filebeat.yml /etc/filebeat/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user