Skip to content

Commit dae6c2f

Browse files
committed
Remove Logstash from repository
1 parent d2715a1 commit dae6c2f

6 files changed

Lines changed: 12 additions & 156 deletions

File tree

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ The *instructions.md* file describes how to deploy Wazuh on Kubernetes.
3636
│ │ │ ├── kibana-svc.yaml
3737
│ │ │ ├── nginx-deploy.yaml
3838
│ │ │ ├── nginx-svc.yaml
39-
│ │
40-
│ │ ├── logstash
41-
│ │ │ ├── logstash-deploy.yaml
42-
│ │ │ ├── logstash-svc.yaml
43-
39+
| |
4440
│ ├── wazuh_managers
4541
│ │ ├── wazuh-cluster-svc.yaml
4642
│ │ ├── wazuh-master-conf.yaml

cleanup.md

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ ubuntu@k8s-control-server:~$ kubectl get pods --namespace wazuh
1515
NAME READY STATUS RESTARTS AGE
1616
wazuh-elasticsearch-0 1/1 Running 0 6d
1717
wazuh-kibana-78cb4bbb7-xf4s8 1/1 Running 0 6d
18-
wazuh-logstash-646689f76f-lcf8b 1/1 Running 0 6d
1918
wazuh-manager-master-0 1/1 Running 0 6d
2019
wazuh-manager-worker-0-0 1/1 Running 0 6d
2120
wazuh-manager-worker-1-0 1/1 Running 0 6d
@@ -46,7 +45,6 @@ ubuntu@k8s-control-server:~$ kubectl get services --namespace wazuh
4645
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
4746
elasticsearch ClusterIP 172.20.247.17 <none> 9200/TCP 6d
4847
kibana ClusterIP 172.20.121.19 <none> 5601/TCP 6d
49-
logstash ClusterIP 172.20.160.68 <none> 5000/TCP 6d
5048
wazuh LoadBalancer 172.20.240.162 internal-ae32... 1515:30732/TCP,55000:30839/TCP 6d
5149
wazuh-cluster ClusterIP None <none> 1516/TCP 6d
5250
wazuh-elasticsearch ClusterIP None <none> 9300/TCP 6d
@@ -180,7 +178,6 @@ ubuntu@k8s-control-server:~$ kubectl get pods --namespace wazuh
180178
NAME READY STATUS RESTARTS AGE
181179
wazuh-elasticsearch-0 1/1 Running 0 6d
182180
wazuh-kibana-78cb4bbb7-xf4s8 1/1 Running 0 6d
183-
wazuh-logstash-646689f76f-lcf8b 1/1 Running 0 6d
184181
wazuh-nginx-57c8c65486-7crh2 1/1 Running 0 6d
185182
```
186183

@@ -195,7 +192,6 @@ ubuntu@k8s-control-server:~$ kubectl get services --namespace wazuh
195192
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
196193
elasticsearch ClusterIP 172.20.247.17 <none> 9200/TCP 6d
197194
kibana ClusterIP 172.20.121.19 <none> 5601/TCP 6d
198-
logstash ClusterIP 172.20.160.68 <none> 5000/TCP 6d
199195
wazuh-elasticsearch ClusterIP None <none> 9300/TCP 6d
200196
wazuh-nginx LoadBalancer 172.20.166.239 internal-ac0c... 80:30409/TCP,443:32575/TCP 6d
201197
```
@@ -251,55 +247,6 @@ ubuntu@k8s-control-server:~$ kubectl delete persistentvolume pvc-b3226ad3-f7c4-1
251247

252248
#### Do not forget to delete the volumes manually in AWS.
253249

254-
255-
## Logstash
256-
257-
To clean the Logstash installation remove the Logstash deployments and services.
258-
259-
### 1. The first step is to remove the pods corresponding to Logstash.
260-
261-
```
262-
ubuntu@k8s-control-server:~$ kubectl get pods --namespace wazuh
263-
NAME READY STATUS RESTARTS AGE
264-
wazuh-kibana-78cb4bbb7-xf4s8 1/1 Running 0 6d
265-
wazuh-logstash-646689f76f-lcf8b 1/1 Running 0 6d
266-
wazuh-nginx-57c8c65486-7crh2 1/1 Running 0 6d
267-
```
268-
269-
```
270-
ubuntu@k8s-control-server:~$ kubectl delete pod wazuh-logstash-646689f76f-lcf8b --namespace wazuh
271-
```
272-
273-
### 2. Next remove the services related to Logstash.
274-
275-
```
276-
ubuntu@k8s-control-server:~$ kubectl get services --namespace wazuh
277-
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
278-
kibana ClusterIP 172.20.121.19 <none> 5601/TCP 6d
279-
logstash ClusterIP 172.20.160.68 <none> 5000/TCP 6d
280-
wazuh-nginx LoadBalancer 172.20.166.239 internal-ac0c... 80:30409/TCP,443:32575/TCP 6d
281-
```
282-
283-
```
284-
ubuntu@k8s-control-server:~$ kubectl delete service logstash --namespace wazuh
285-
```
286-
287-
288-
### 3. Finally eliminate the deployment.
289-
290-
```
291-
ubuntu@k8s-control-server:~$ kubectl get deploy --namespace wazuh
292-
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
293-
wazuh-kibana 1 1 1 1 6d
294-
wazuh-logstash 1 1 1 1 6d
295-
wazuh-nginx 1 1 1 1 6d
296-
```
297-
298-
```
299-
ubuntu@k8s-control-server:~$ kubectl delete deploy wazuh-logstash --namespace wazuh
300-
```
301-
302-
303250
## Kibana and Nginx
304251

305252
To clean the Kibana and Nginx installation remove their deployments and services.

elastic_stack/logstash/logstash-deploy.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

elastic_stack/logstash/logstash-svc.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

instructions.md

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Like a Deployment, a StatefulSet manages Pods that are based on an identical con
1919

2020
It is useful for stateful applications like databases that save the data to a persistent storage. The states of each Wazuh manager as well as Elasticsearch are desirable to maintain, so we declare them using StatefulSet to ensure that they maintain their states in every startup.
2121

22-
Deployments are intended for stateless use and are quite lightweight and seem to be appropriate for Logstash, Kibana and Nginx, where it is not necessary to maintain the states.
22+
Deployments are intended for stateless use and are quite lightweight and seem to be appropriate for Kibana and Nginx, where it is not necessary to maintain the states.
2323

2424
### Pods
2525

@@ -29,50 +29,40 @@ This pod contains the master node of the Wazuh cluster. The master node centrali
2929
The management is performed only in this node, so the agent registration service (authd) and the API are placed here.
3030

3131
Details:
32-
- Image: Docker Hub 'wazuh/wazuh:3.9.4_6.8.2'
32+
- Image: Docker Hub 'wazuh/wazuh:3.9.4_7.1.0'
3333
- Controller: StatefulSet
3434

3535
#### Wazuh worker 0 / 1
3636

3737
These pods contain a worker node of the Wazuh cluster. They will receive the agent events.
3838

3939
Details:
40-
- Image: Docker Hub 'wazuh/wazuh:3.9.4_6.8.2'
40+
- Image: Docker Hub 'wazuh/wazuh:3.9.4_7.1.0'
4141
- Controller: StatefulSet
4242

4343

4444
#### Elasticsearch
4545

46-
Elasticsearch pod. It receives and stores alerts received from Logstash. No Elasticsearch cluster is supported yet.
46+
Elasticsearch pod. No Elasticsearch cluster is supported yet.
4747

4848
Details:
49-
- Image: wazuh/wazuh-elasticsearch:3.9.4_6.8.2
49+
- Image: wazuh/wazuh-elasticsearch:3.9.4_7.1.0
5050
- Controller: StatefulSet
5151

52-
53-
#### Logstash
54-
55-
Logstash pod. It receives the alerts from each Filebeat located in every Wazuh manager. Then, the alerts are sent to Elasticsearch.
56-
57-
Details:
58-
- image: Docker Hub 'wazuh/logstash:3.9.4_6.8.2'
59-
- Controller: Deployment
60-
61-
6252
#### Kibana
6353

6454
Kibana pod. It lets you visualize your Elasticsearch data, along with other features as the Wazuh app.
6555

6656
Details:
67-
- image: Docker Hub 'wazuh/kibana:3.9.4_6.8.2'
57+
- image: Docker Hub 'wazuh/kibana:3.9.4_7.1.0'
6858
- Controller: Deployment
6959

7060
#### Nginx
7161

7262
The nginx pod acts as a reverse proxy for a safer access to Kibana.
7363

7464
Details:
75-
- image: Docker Hub 'wazuh/nginx:3.9.4_6.8.2'
65+
- image: Docker Hub 'wazuh/nginx:3.9.4_7.1.0'
7666
- Controller: Deployment
7767

7868

@@ -83,13 +73,11 @@ Details:
8373
- wazuh-elasticsearch:
8474
- Communication for Elasticsearch nodes.
8575
- elasticsearch:
86-
- Elasticsearch API. Used by Logstash/Kibana to write/read alerts.
76+
- Elasticsearch API. Used by Kibana to write/read alerts.
8777
- wazuh-nginx:
8878
- Nginx proxy to access Kibana: https://wazuh.your-domain.com:443
8979
- kibana:
9080
- Kibana service.
91-
- Logstash:
92-
- Logstash service, each Manager node has a Filebeat pointing to this service.
9381

9482
#### Wazuh
9583

@@ -164,15 +152,6 @@ $ kubectl apply -f elastic_stack/kibana/kibana-deploy.yaml
164152
$ kubectl apply -f elastic_stack/kibana/nginx-deploy.yaml
165153
```
166154

167-
### Step 3.4: Deploy Logstash
168-
169-
Logstash deployment.
170-
171-
```BASH
172-
$ kubectl apply -f elastic_stack/logstash/logstash-svc.yaml
173-
$ kubectl apply -f elastic_stack/logstash/logstash-deploy.yaml
174-
```
175-
176155
### Step 3.5: Deploy Wazuh
177156

178157
Wazuh cluster deployment.
@@ -210,7 +189,6 @@ $ kubectl get services -n wazuh
210189
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
211190
elasticsearch ClusterIP xxx.yy.zzz.24 <none> 9200/TCP 12m
212191
kibana ClusterIP xxx.yy.zzz.76 <none> 5601/TCP 11m
213-
logstash ClusterIP xxx.yy.zzz.41 <none> 5000/TCP 10m
214192
wazuh LoadBalancer xxx.yy.zzz.209 internal-a7a8... 1515:32623/TCP,55000:30283/TCP 9m
215193
wazuh-cluster ClusterIP None <none> 1516/TCP 9m
216194
wazuh-elasticsearch ClusterIP None <none> 9300/TCP 12m
@@ -224,7 +202,6 @@ wazuh-workers LoadBalancer xxx.yy.zzz.26 internal-a7f9... 1514:31
224202
$ kubectl get deployments -n wazuh
225203
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
226204
wazuh-kibana 1 1 1 1 11m
227-
wazuh-logstash 1 1 1 1 10m
228205
wazuh-nginx 1 1 1 1 11m
229206
```
230207

@@ -247,7 +224,6 @@ $ kubectl get pods -n wazuh
247224
NAME READY STATUS RESTARTS AGE
248225
wazuh-elasticsearch-0 1/1 Running 0 15m
249226
wazuh-kibana-f4d9c7944-httsd 1/1 Running 0 14m
250-
wazuh-logstash-777b7cd47b-7cxfq 1/1 Running 0 13m
251227
wazuh-manager-master-0 1/1 Running 0 12m
252228
wazuh-manager-worker-0-0 1/1 Running 0 11m
253229
wazuh-manager-worker-1-0 1/1 Running 0 11m

upgrade.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ Any file that we modify referring to the files previously mentioned, will be cha
2727

2828
To better understand it, we will give an example:
2929

30-
We have our newly created Kubernetes environment following our instructions. In this example, the image of Wazuh used has been `wazuh/wazuh:3.9.4_6.8.2`.
30+
We have our newly created Kubernetes environment following our instructions. In this example, the image of Wazuh used has been `wazuh/wazuh:3.9.4_7.1.0`.
3131

3232
```
3333
containers:
3434
- name: wazuh-manager
35-
image: 'wazuh/wazuh:3.9.4_6.8.2'
35+
image: 'wazuh/wazuh:3.9.4_7.1.0'
3636
```
3737

3838
Let's proceed by creating a set of rules in our `local_rules.xml` file at location `/var/ossec/etc/rules` in our wazuh manager master pod.
@@ -187,7 +187,7 @@ And now we're going to upgrade to the next version:
187187
```
188188
containers:
189189
- name: wazuh-manager
190-
image: 'wazuh/wazuh:3.9.4_6.8.2'
190+
image: 'wazuh/wazuh:3.9.4_7.1.0'
191191
```
192192

193193

0 commit comments

Comments
 (0)