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

[newPlatform] Migration of Monitoring #2703

Closed
3 tasks done
Tracked by #2591
Desvelao opened this issue Dec 21, 2020 · 1 comment
Closed
3 tasks done
Tracked by #2591

[newPlatform] Migration of Monitoring #2703

Desvelao opened this issue Dec 21, 2020 · 1 comment
Assignees
Labels

Comments

@Desvelao
Copy link
Member

Desvelao commented Dec 21, 2020

Parent issue #2591

Description

Migrate the monitoring job to the new platform.

Tasks

  • Create a function to attach to start plugin method
  • Replace the Elasticsearch client
  • Replace the Wazuh API calls with the new ApiInterceptor methods
@Desvelao Desvelao added the type/enhancement Enhancement issue label Dec 21, 2020
@Desvelao Desvelao self-assigned this Dec 21, 2020
@Desvelao
Copy link
Member Author

Desvelao commented Dec 22, 2020

Changes

  • Refactorized from class to functions. Now export the main function to do the job.
  • Replaced Elasticsearch request using the ElasticWrapper for the new Elasticsearch client provided by the new Kibana platform
  • Replaced ApiInterceptor requests with the new methods.
  • Created a context that is passed to the monitoring job. Includes the Elasticsearch client, API client and the Kibana logger customized for monitoring.
  • Renamed some methods.
  • Convert some files to .ts to support Typescript.
  • Removed the logic to update the monitoring known fields.
  • Removed the logic to wait until Elasticsearch is ready to receive requests.
  • Moved some constants to util/contants.js file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant