Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update filebeat module version #1581

Merged
merged 1 commit into from
May 30, 2022
Merged

Conversation

DFolchA
Copy link
Contributor

@DFolchA DFolchA commented May 27, 2022

Related issue
Related #1563

Description

This PR updates the version of the Filebeat module.

Logs example

[root@centos repo]# ./wazuh-install.sh -a
27/05/2022 13:06:57 INFO: Starting Wazuh installation assistant. Wazuh version: 4.3.1
27/05/2022 13:06:57 INFO: Verbose logging redirected to /var/log/wazuh-install.log
27/05/2022 13:07:00 INFO: Wazuh repository added.
27/05/2022 13:07:00 INFO: --- Configuration files ---
27/05/2022 13:07:00 INFO: Generating configuration files.
27/05/2022 13:07:00 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
27/05/2022 13:07:00 INFO: --- Wazuh indexer ---
27/05/2022 13:07:00 INFO: Starting Wazuh indexer installation.
27/05/2022 13:08:05 INFO: Wazuh indexer installation finished.
27/05/2022 13:08:05 INFO: Wazuh indexer post-install configuration finished.
27/05/2022 13:08:05 INFO: Starting service wazuh-indexer.
27/05/2022 13:08:13 INFO: wazuh-indexer service started.
27/05/2022 13:08:13 INFO: Initializing Wazuh indexer cluster security settings.
27/05/2022 13:08:18 INFO: Wazuh indexer cluster initialized.
27/05/2022 13:08:18 INFO: --- Wazuh server ---
27/05/2022 13:08:18 INFO: Starting the Wazuh manager installation.
27/05/2022 13:09:00 INFO: Wazuh manager installation finished.
27/05/2022 13:09:00 INFO: Starting service wazuh-manager.
27/05/2022 13:09:10 INFO: wazuh-manager service started.
27/05/2022 13:09:10 INFO: Starting Filebeat installation.
27/05/2022 13:09:15 INFO: Filebeat installation finished.
27/05/2022 13:09:17 INFO: Filebeat post-install configuration finished.
27/05/2022 13:09:17 INFO: Starting service filebeat.
27/05/2022 13:09:17 INFO: filebeat service started.
27/05/2022 13:09:17 INFO: --- Wazuh dashboard ---
27/05/2022 13:09:17 INFO: Starting Wazuh dashboard installation.
27/05/2022 13:10:26 INFO: Wazuh dashboard installation finished.
27/05/2022 13:10:26 INFO: Wazuh dashboard post-install configuration finished.
27/05/2022 13:10:26 INFO: Starting service wazuh-dashboard.
27/05/2022 13:10:27 INFO: wazuh-dashboard service started.
27/05/2022 13:10:40 INFO: Initializing Wazuh dashboard web application.
27/05/2022 13:10:51 INFO: Wazuh dashboard web application initialized.
27/05/2022 13:10:51 INFO: --- Summary ---
27/05/2022 13:10:51 INFO: You can access the web interface https://<wazuh-dashboard-ip>
    User: admin
    Password: EQEqp2j717PdBX0b2ae9grTj92icuXeg
27/05/2022 13:10:51 INFO: Installation finished.

@DFolchA DFolchA self-assigned this May 27, 2022
@@ -70,14 +70,14 @@ function buildInstaller() {
echo 'readonly repogpg="https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH"' >> "${output_script_path}"
echo 'readonly repobaseurl="https://packages-dev.wazuh.com/pre-release"' >> "${output_script_path}"
echo 'readonly reporelease="unstable"' >> "${output_script_path}"
echo 'readonly filebeat_wazuh_module="${repobaseurl}/filebeat/wazuh-filebeat-0.1.tar.gz"' >> "${output_script_path}"
echo 'readonly filebeat_wazuh_module="${repobaseurl}/filebeat/wazuh-filebeat-0.2.tar.gz"' >> "${output_script_path}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [shellcheck] reported by reviewdog 🐶
Expressions don't expand in single quotes, use double quotes for that. SC2016

@@ -70,14 +70,14 @@ function buildInstaller() {
echo 'readonly repogpg="https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH"' >> "${output_script_path}"
echo 'readonly repobaseurl="https://packages-dev.wazuh.com/pre-release"' >> "${output_script_path}"
echo 'readonly reporelease="unstable"' >> "${output_script_path}"
echo 'readonly filebeat_wazuh_module="${repobaseurl}/filebeat/wazuh-filebeat-0.1.tar.gz"' >> "${output_script_path}"
echo 'readonly filebeat_wazuh_module="${repobaseurl}/filebeat/wazuh-filebeat-0.2.tar.gz"' >> "${output_script_path}"
echo 'readonly bucket="packages-dev.wazuh.com"' >> "${output_script_path}"
echo 'readonly repository="pre-release"' >> "${output_script_path}"
else
echo 'readonly repogpg="https://packages.wazuh.com/key/GPG-KEY-WAZUH"' >> "${output_script_path}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shellcheck] reported by reviewdog 🐶
Consider using { cmd1; cmd2; } >> file instead of individual redirects. SC2129

echo 'readonly bucket="packages-dev.wazuh.com"' >> "${output_script_path}"
echo 'readonly repository="pre-release"' >> "${output_script_path}"
else
echo 'readonly repogpg="https://packages.wazuh.com/key/GPG-KEY-WAZUH"' >> "${output_script_path}"
echo 'readonly repobaseurl="https://packages.wazuh.com/4.x"' >> "${output_script_path}"
echo 'readonly reporelease="stable"' >> "${output_script_path}"
echo 'readonly filebeat_wazuh_module="${repobaseurl}/filebeat/wazuh-filebeat-0.1.tar.gz"' >> "${output_script_path}"
echo 'readonly filebeat_wazuh_module="${repobaseurl}/filebeat/wazuh-filebeat-0.2.tar.gz"' >> "${output_script_path}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [shellcheck] reported by reviewdog 🐶
Expressions don't expand in single quotes, use double quotes for that. SC2016

@github-actions
Copy link
Contributor

./artifacts_generated/builder.sh:12:10:warning:Declare and assign separately to avoid masking return values.
./artifacts_generated/builder.sh:18:10:warning:resources_download appears unused. Verify use (or export if used externally).
./artifacts_generated/builder.sh:69:9:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:73:14:info:Expressions don't expand in single quotes, use double quotes for that.
./artifacts_generated/builder.sh:77:9:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:80:14:info:Expressions don't expand in single quotes, use double quotes for that.
./artifacts_generated/builder.sh:84:5:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:85:25:info:Double quote to prevent globbing and word splitting.
./artifacts_generated/builder.sh:89:26:warning:Prefer mapfile or read -a to split command output (or quote to avoid splitting).
./artifacts_generated/builder.sh:90:23:warning:Prefer mapfile or read -a to split command output (or quote to avoid splitting).
./artifacts_generated/builder.sh:90:37:error:Double quote array expansions to avoid re-splitting elements.
./artifacts_generated/builder.sh:90:37:error:Argument mixes string and array. Use * or separate argument.
./artifacts_generated/builder.sh:90:37:warning:The surrounding quotes actually unquote this. Remove or escape them.
./artifacts_generated/builder.sh:90:37:warning:eval negates the benefit of arrays. Drop eval to preserve whitespace/symbols (or eval as string).
./artifacts_generated/builder.sh:92:62:style:Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
./artifacts_generated/builder.sh:103:22:warning:Prefer mapfile or read -a to split command output (or quote to avoid splitting).
./artifacts_generated/builder.sh:104:28:warning:Prefer mapfile or read -a to split command output (or quote to avoid splitting).
./artifacts_generated/builder.sh:107:13:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:108:54:info:Double quote to prevent globbing and word splitting.
./artifacts_generated/builder.sh:114:5:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:140:5:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:155:24:warning:Prefer mapfile or read -a to split command output (or quote to avoid splitting).
./artifacts_generated/builder.sh:156:30:warning:Prefer mapfile or read -a to split command output (or quote to avoid splitting).
./artifacts_generated/builder.sh:156:44:error:Double quote array expansions to avoid re-splitting elements.
./artifacts_generated/builder.sh:156:44:error:Argument mixes string and array. Use * or separate argument.
./artifacts_generated/builder.sh:156:44:warning:The surrounding quotes actually unquote this. Remove or escape them.
./artifacts_generated/builder.sh:156:44:warning:eval negates the benefit of arrays. Drop eval to preserve whitespace/symbols (or eval as string).
./artifacts_generated/builder.sh:159:13:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:166:5:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:180:5:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:195:20:warning:Prefer mapfile or read -a to split command output (or quote to avoid splitting).
./artifacts_generated/builder.sh:196:26:warning:Prefer mapfile or read -a to split command output (or quote to avoid splitting).
./artifacts_generated/builder.sh:196:40:error:Double quote array expansions to avoid re-splitting elements.
./artifacts_generated/builder.sh:196:40:error:Argument mixes string and array. Use * or separate argument.
./artifacts_generated/builder.sh:196:40:warning:The surrounding quotes actually unquote this. Remove or escape them.
./artifacts_generated/builder.sh:196:40:warning:eval negates the benefit of arrays. Drop eval to preserve whitespace/symbols (or eval as string).
./artifacts_generated/builder.sh:199:13:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:206:5:style:Consider using { cmd1; cmd2; } >> file instead of individual redirects.
./artifacts_generated/builder.sh:248:19:info:Double quote to prevent globbing and word splitting.
./artifacts_generated/builder.sh:253:19:info:Double quote to prevent globbing and word splitting.
./artifacts_generated/builder.sh:258:19:info:Double quote to prevent globbing and word splitting.

@alberpilot alberpilot merged commit 85bf3d4 into 4.3 May 30, 2022
@alberpilot alberpilot deleted the update-filebeat-module-version branch May 30, 2022 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants