Skip to content

Commit 1786535

Browse files
author
Jose M. Garcia
authored
Merge pull request #289 from wazuh/wazuh-release-v3.11.1_7.5.1
Wazuh Release v3.11.1_7.5.1
2 parents 44a7a9b + 95cb2fa commit 1786535

8 files changed

Lines changed: 40 additions & 61 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4-
## Wazuh Docker v3.11.0_7.5.1
4+
## Wazuh Docker v3.11.1_7.5.1
55

66
### Added
77

8-
- Update to Wazuh version 3.11.0_7.5.1
8+
- Update to Wazuh version 3.11.1_7.5.1
99
- Filebeat configuration file updated to latest version ([@manuasir](https://github.com/manuasir)) [#271](https://github.com/wazuh/wazuh-docker/pull/271)
1010
- Allow using the hostname as node_name for managers ([@JPLachance](https://github.com/JPLachance)) [#261](https://github.com/wazuh/wazuh-docker/pull/261)
1111

12+
## Wazuh Docker v3.11.0_7.5.1
13+
14+
### Added
15+
16+
- Update to Wazuh version 3.11.0_7.5.1
17+
1218
## Wazuh Docker v3.10.2_7.5.0
1319

1420
### Added

VERSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
WAZUH-DOCKER_VERSION="3.11.0_7.5.1"
2-
REVISION="31100"
1+
WAZUH-DOCKER_VERSION="3.11.1_7.5.1"
2+
REVISION="31110"

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '2'
33

44
services:
55
wazuh:
6-
image: wazuh/wazuh:3.11.0_7.5.1
6+
image: wazuh/wazuh:3.11.1_7.5.1
77
hostname: wazuh-manager
88
restart: always
99
ports:
@@ -13,7 +13,7 @@ services:
1313
- "55000:55000"
1414

1515
elasticsearch:
16-
image: wazuh/wazuh-elasticsearch:3.11.0_7.5.1
16+
image: wazuh/wazuh-elasticsearch:3.11.1_7.5.1
1717
hostname: elasticsearch
1818
restart: always
1919
ports:
@@ -30,7 +30,7 @@ services:
3030
mem_limit: 2g
3131

3232
kibana:
33-
image: wazuh/wazuh-kibana:3.11.0_7.5.1
33+
image: wazuh/wazuh-kibana:3.11.1_7.5.1
3434
hostname: kibana
3535
restart: always
3636
depends_on:
@@ -39,7 +39,7 @@ services:
3939
- elasticsearch:elasticsearch
4040
- wazuh:wazuh
4141
nginx:
42-
image: wazuh/wazuh-nginx:3.11.0_7.5.1
42+
image: wazuh/wazuh-nginx:3.11.1_7.5.1
4343
hostname: nginx
4444
restart: always
4545
environment:

elasticsearch/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV XPACK_ML="true"
1515

1616
ENV ENABLE_CONFIGURE_S3="false"
1717

18-
ARG TEMPLATE_VERSION=v3.11.0
18+
ARG TEMPLATE_VERSION=v3.11.1
1919

2020
# Elasticearch cluster configuration environment variables
2121
# If ELASTIC_CLUSTER is set to "true" the following variables will be added to the Elasticsearch configuration

kibana/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM docker.elastic.co/kibana/kibana:7.5.1
33
USER kibana
44
ARG ELASTIC_VERSION=7.5.1
5-
ARG WAZUH_VERSION=3.11.0
5+
ARG WAZUH_VERSION=3.11.1
66
ARG WAZUH_APP_VERSION="${WAZUH_VERSION}_${ELASTIC_VERSION}"
77

88
#ADD https://packages.wazuh.com/wazuhapp/wazuhapp-${WAZUH_APP_VERSION}.zip /usr/share/kibana/

wazuh/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ FROM phusion/baseimage:latest
33

44
ARG FILEBEAT_VERSION=7.5.1
55

6-
ARG WAZUH_VERSION=3.11.0-1
6+
ARG WAZUH_VERSION=3.11.1-1
77

88
ENV API_USER="foo" \
99
API_PASS="bar"
1010

11-
ARG TEMPLATE_VERSION="v3.11.0"
11+
ARG TEMPLATE_VERSION="v3.11.1"
1212

1313
# Set repositories.
1414
RUN set -x && echo "deb https://packages.wazuh.com/3.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list && \

wazuh/config/00-wazuh.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,17 @@ function ossec_shutdown(){
104104
${WAZUH_INSTALL_PATH}/bin/ossec-control stop;
105105
}
106106

107+
##############################################################################
108+
# Allow users to set the container hostname as <node_name> dynamically on
109+
# container start.
110+
#
111+
# To use this:
112+
# 1. Create your own ossec.conf file
113+
# 2. In your ossec.conf file, set to_be_replaced_by_hostname as your node_name
114+
# 3. Mount your custom ossec.conf file at $WAZUH_CONFIG_MOUNT/etc/ossec.conf
115+
##############################################################################
116+
sed -i 's/<node_name>to_be_replaced_by_hostname<\/node_name>/<node_name>'"${HOSTNAME}"'<\/node_name>/g' ${WAZUH_INSTALL_PATH}/etc/ossec.conf
117+
107118
# Trap exit signals and do a proper shutdown
108119
trap "ossec_shutdown; exit" SIGINT SIGTERM
109120

wazuh/config/filebeat.yml

Lines changed: 11 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,15 @@
1-
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
2-
filebeat.inputs:
3-
- type: log
4-
paths:
5-
- '/var/ossec/logs/alerts/alerts.json'
1+
# Wazuh - Filebeat configuration file
2+
filebeat.modules:
3+
- module: wazuh
4+
alerts:
5+
enabled: true
6+
archives:
7+
enabled: false
68

79
setup.template.json.enabled: true
8-
setup.template.json.path: "/etc/filebeat/wazuh-template.json"
9-
setup.template.json.name: "wazuh"
10+
setup.template.json.path: '/etc/filebeat/wazuh-template.json'
11+
setup.template.json.name: 'wazuh'
1012
setup.template.overwrite: true
13+
setup.ilm.enabled: false
1114

12-
processors:
13-
- decode_json_fields:
14-
fields: ['message']
15-
process_array: true
16-
max_depth: 200
17-
target: ''
18-
overwrite_keys: true
19-
- drop_fields:
20-
fields: ['message', 'ecs', 'beat', 'input_type', 'tags', 'count', '@version', 'log', 'offset', 'type', 'host']
21-
- rename:
22-
fields:
23-
- from: "data.aws.sourceIPAddress"
24-
to: "@src_ip"
25-
ignore_missing: true
26-
fail_on_error: false
27-
when:
28-
regexp:
29-
data.aws.sourceIPAddress: \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
30-
- rename:
31-
fields:
32-
- from: "data.srcip"
33-
to: "@src_ip"
34-
ignore_missing: true
35-
fail_on_error: false
36-
when:
37-
regexp:
38-
data.srcip: \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
39-
- rename:
40-
fields:
41-
- from: "data.win.eventdata.ipAddress"
42-
to: "@src_ip"
43-
ignore_missing: true
44-
fail_on_error: false
45-
when:
46-
regexp:
47-
data.win.eventdata.ipAddress: \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
48-
49-
output.elasticsearch:
50-
hosts: ['http://elasticsearch:9200']
51-
#pipeline: geoip
52-
indices:
53-
- index: 'wazuh-alerts-3.x-%{+yyyy.MM.dd}'
15+
output.elasticsearch.hosts: ['http://elasticsearch:9200']

0 commit comments

Comments
 (0)