-
Notifications
You must be signed in to change notification settings - Fork 188
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
Move ".wazuh-version" information to a registry file #1467
Comments
Update 05/06 7bd4577
Initialize.jsFirst of all After we check if registry already exists with If it doesn't exist, we are going to create it in fs.writeFileSync(wazuhVersion, JSON.stringify(configuration), (err) => {
if (err) {
throw new Error(err);
}
}); Once created, we update the field let source = JSON.parse(fs.readFileSync(wazuhVersion, 'utf8'));
source.lastRestart = new Date().toISOString(); // Registry exists so we update the lastRestarted date only Wazuh-elasticWe have removed And the getters methods on it have been replaced from Now the files Elastic wrapperAll these methods have been removed from this wrapper cause them don't make sense: createWazuhVersionIndex()
insertWazuhVersionConfiguration()
getWazuhVersionIndex()
updateWazuhVersionIndexLastRestart()
getWazuhVersionIndexAsSearch() Instead the method Configurations
|
Update 19/06Changes
Tests in a Production enviroment
File in OK scenario {"name":"Wazuh App","app-version":"3.10.0","revision":"0516","installationDate":"2019-06-18T16:06:11.594Z","lastRestart":"2019-06-18T16:19:06.012Z"} |
Production error pointing I've been getting this error when installing the app in production from the package and updating the As the calls have changed from In the end it was because the bundles generated had not been updated. I proceed to erase them and launch Kibana again to regenerate them.
Now everything works properly. |
Hi team,
The
.wazuh-version
is a useless index right now. Every index in Elasticsearch implies shards, replicas, and a few other things that might generate errors.Description
The information stored in
.wazuh-version
must be replaced with a non-indexed solution.Proposal
Create a
registry file
as Filebeat does. This index just let us now the installation date and the last Kibana restart time. That information can be written to a registry file. Other data in that index is about the version, revision, and all that information can be parsed from our package.json so there is no need for having a document in an internal index.Other changes
The text was updated successfully, but these errors were encountered: