wazuh / wazuh-packages

Wazuh - Tools for packages creation
https://wazuh.com
GNU General Public License v2.0
103 stars 93 forks source link

Update `indexer-ism-init.sh` #2733

Closed AlexRuiz7 closed 8 months ago

AlexRuiz7 commented 8 months ago
Related issue
Closes #2730

Description

Update the indexer-ism-init.sh script to parametrize the path of the wazuh-template.

Logs example

[root@rhel7 vagrant]# bash indexer-ism-init.sh -p $(cat password.txt) -t ./wazuh-template.json 
Will create 'wazuh' index template
 SUCC: 'wazuh' template created or updated
Will create index templates to configure the alias
 SUCC: 'wazuh-alerts' template created or updated
 SUCC: 'wazuh-archives' template created or updated
Will create the 'rollover_policy' policy
  SUCC: 'rollover_policy' policy created
Will create initial indices for the aliases
  SUCC: 'wazuh-alerts' write index created
  SUCC: 'wazuh-archives' write index created
SUCC: Indexer ISM initialization finished successfully.

Tests