Skip to content

Commit 4d22f08

Browse files
authored
Merge pull request #8934 from wazuh/enhancement/idr348-update-curl-commands
Add update to curl commands in the upgrade guide
2 parents 6850e70 + 8eb6892 commit 4d22f08

File tree

2 files changed

+34
-35
lines changed

2 files changed

+34
-35
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ All notable changes to this project will be documented in this file.
33

44
## [v4.13.1]
55

6-
- Support for Wazuh 4.13.1
6+
### Changed
7+
8+
- **Post-release**: Updated curl commands in the Upgrade guide. ([#8934](https://github.com/wazuh/wazuh-documentation/pull/8934))
79

810
## [v4.13.0]
911

source/upgrade-guide/upgrading-central-components.rst

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ Perform the following steps on any of the Wazuh indexer nodes replacing ``<WAZUH
7777

7878
.. code-block:: bash
7979
80-
curl -X PUT "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cluster/settings" \
81-
-u <USERNAME>:<PASSWORD> -k -H "Content-Type: application/json" -d '
80+
curl -X PUT "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cluster/settings" -u <USERNAME> -k -H 'Content-Type: application/json' -d'
8281
{
83-
"persistent": {
84-
"cluster.routing.allocation.enable": "primaries"
85-
}
86-
}'
82+
"persistent": {
83+
"cluster.routing.allocation.enable": "primaries"
84+
}
85+
}
86+
'
8787
8888
.. code-block:: json
8989
:class: output
@@ -106,7 +106,7 @@ Perform the following steps on any of the Wazuh indexer nodes replacing ``<WAZUH
106106

107107
.. code-block:: console
108108
109-
# curl -X POST "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_flush" -u <USERNAME>:<PASSWORD> -k
109+
# curl -X POST "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_flush" -u <USERNAME> -k
110110
111111
.. code-block:: json
112112
:class: output
@@ -146,7 +146,7 @@ Perform the following steps on each Wazuh indexer node to upgrade them. Upgrade
146146

147147
.. code-block:: console
148148
149-
# curl -k -u <USERNAME>:<PASSWORD> https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cat/nodes?v
149+
# curl -k -u <USERNAME> https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cat/nodes?v
150150
151151
#. Stop the Wazuh indexer service.
152152

@@ -209,18 +209,17 @@ Perform the following steps on any of the Wazuh indexer nodes replacing ``<WAZUH
209209

210210
.. code-block:: console
211211
212-
# curl -k -u <USERNAME>:<PASSWORD> https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cat/nodes?v
212+
# curl -k -u <USERNAME> https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cat/nodes?v
213213
214214
#. Re-enable shard allocation.
215215

216216
.. code-block:: bash
217217
218-
curl -X PUT "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cluster/settings" \
219-
-u <USERNAME>:<PASSWORD> -k -H "Content-Type: application/json" -d '
218+
curl -X PUT "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cluster/settings" -u <USERNAME> -k -H 'Content-Type: application/json' -d'
220219
{
221-
"persistent": {
222-
"cluster.routing.allocation.enable": "all"
223-
}
220+
"persistent": {
221+
"cluster.routing.allocation.enable": "all"
222+
}
224223
}
225224
'
226225
@@ -245,11 +244,11 @@ Perform the following steps on any of the Wazuh indexer nodes replacing ``<WAZUH
245244

246245
.. code-block:: console
247246
248-
# curl -k -u <USERNAME>:<PASSWORD> https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cat/nodes?v
247+
# curl -k -u <USERNAME> https://<WAZUH_INDEXER_IP_ADDRESS>:9200/_cat/nodes?v
249248
250249
.. code-block:: console
251250
:class: output
252-
251+
253252
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role node.roles cluster_manager name
254253
172.18.0.3 34 86 32 6.67 5.30 2.53 dimr cluster_manager,data,ingest,remote_cluster_client - wazuh2.indexer
255254
172.18.0.4 21 86 32 6.67 5.30 2.53 dimr cluster_manager,data,ingest,remote_cluster_client * wazuh1.indexer
@@ -424,30 +423,28 @@ When upgrading Wazuh, you must also update the Wazuh Filebeat module and the ale
424423

425424
.. code-block:: bash
426425
427-
curl -X PUT "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/wazuh-states-vulnerabilities-*/_mapping" \
428-
-u <USERNAME>:<PASSWORD> -k -H "Content-Type: application/json" -d '
426+
curl -X PUT "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/wazuh-states-vulnerabilities-*/_mapping" -u <USERNAME> -k -H 'Content-Type: application/json' -d'
429427
{
430-
"properties": {
431-
"vulnerability": {
432-
"properties": {
433-
"under_evaluation": {
434-
"type": "boolean"
435-
},
436-
"scanner": {
437-
"properties": {
438-
"source": {
439-
"type": "keyword",
440-
"ignore_above": 1024
441-
}
442-
}
428+
"properties": {
429+
"vulnerability": {
430+
"properties": {
431+
"under_evaluation": {
432+
"type": "boolean"
433+
},
434+
"scanner": {
435+
"properties": {
436+
"source": {
437+
"type": "keyword",
438+
"ignore_above": 1024
443439
}
444-
}
440+
}
441+
}
445442
}
446-
}
443+
}
444+
}
447445
}
448446
'
449447
450-
451448
Upgrading the Wazuh dashboard
452449
-----------------------------
453450

0 commit comments

Comments
 (0)