Skip to content

Commit

Permalink
[Statistics] Remove logged error related to the creation of an existe…
Browse files Browse the repository at this point in the history
…nt index (#4235)

* fix(statistics): remove the logging when there is an error caused by creating an existent index

The statistics jobs run in parallel and they try to create the same
index. One of them runs the request to create the index successfully, but
the other one fails due to the index already existing. This error is caught
and logged.

If the error is not related to the index exists, this is thrown and it
is caught and logged in another method related to the statistics job

More information in:
- #4203 (comment)

* changelog: add the PR entry

* changelog: fixes Wazuh version and revision

* Update CHANGELOG.md

Co-authored-by: Álex <[email protected]>
  • Loading branch information
Desvelao and AlexRuiz7 committed Jun 14, 2022
1 parent 8654687 commit cd9b1a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ All notable changes to the Wazuh app project will be documented in this file.

- Added to the interface API messages in the Ruleset test module [#4244](https://github.com/wazuh/wazuh-kibana-app/pull/4244)

### Changed

- Changed the reference from Manager to Wazuh server in the guide to deploy a new agent [#4239](https://github.com/wazuh/wazuh-kibana-app/pull/4239)

### Fixed

- Fixed type error when changing screen size in agents section [#4233](https://github.com/wazuh/wazuh-kibana-app/pull/4233)
- Removed a logged error that appeared when the `statistics` tasks tried to create an index with the same name, causing the second task to fail on the creation of the index because it already exists [#4235](https://github.com/wazuh/wazuh-kibana-app/pull/4235)
- Fixed an error when generating a module report after changing the selected agent [#4240](https://github.com/wazuh/wazuh-kibana-app/pull/4240)

### Changed

- Changed the word Manager to Wazuh server from the phrases that appeared in "Deploy a new agent". [#4239](https://github.com/wazuh/wazuh-kibana-app/pull/4239)

## Wazuh v4.3.4 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 4305

### Added
Expand Down
1 change: 0 additions & 1 deletion server/start/cron-scheduler/save-document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export class SaveDocument {
}
})();
} catch (error) {
log(this.logPath, error.message || error);
this.checkDuplicateIndexError(error);
}
}
Expand Down

0 comments on commit cd9b1a4

Please sign in to comment.