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

Wazuh API usage - Statistics task #5247

Closed
Tracked by #5233
Desvelao opened this issue Mar 3, 2023 · 0 comments · Fixed by #5532, #5541 or #5540
Closed
Tracked by #5233

Wazuh API usage - Statistics task #5247

Desvelao opened this issue Mar 3, 2023 · 0 comments · Fixed by #5532, #5541 or #5540
Assignees
Labels
level/task Task issue type/enhancement Enhancement issue

Comments

@Desvelao
Copy link
Member

Desvelao commented Mar 3, 2023

Wazuh Elastic Rev Security
4.x 7.x 4xxx Basic, ODFE, Xpack
Browser
Chrome, Firefox, Safari, etc

Description

Analysis: #5233

Issue
2021/11/10 10:25:01 INFO: wazuh-wui 172.18.0.17 "GET /cluster/master-node/stats/remoted" with parameters {"pretty": ""} and body {} done in 0.029s: 200
2021/11/10 10:25:01 INFO: wazuh-wui 172.18.0.17 "GET /cluster/master-node/stats/analysisd" with parameters {"pretty": ""} and body {} done in 0.020s: 200
2021/11/10 10:25:01 INFO: wazuh-wui 172.18.0.17 "GET /cluster/worker2/stats/remoted" with parameters {"pretty": ""} and body {} done in 0.040s: 200
2021/11/10 10:25:01 INFO: wazuh-wui 172.18.0.17 "GET /cluster/worker2/stats/analysisd" with parameters {"pretty": ""} and body {} done in 0.047s: 200
2021/11/10 10:25:01 INFO: wazuh-wui 172.18.0.17 "GET /cluster/worker1/stats/remoted" with parameters {"pretty": ""} and body {} done in 0.033s: 200
2021/11/10 10:25:01 INFO: wazuh-wui 172.18.0.17 "GET /cluster/worker1/stats/analysisd" with parameters {"pretty": ""} and body {} done in 0.030s: 200
  • Improvements and suggestions

[...]
2. The pretty parameter is not being used properly in the requests to GET /cluster/{node_id}/remoted and GET /cluster/{node_id}/analysisd endpoints. Remove the parameter as it is not being used.

  1. I did a fast search and the pretty parameter seems to not be related to the request of frontend. They could be caused the cron jobs to retrieve data of statistics. See server/start/cron-scheduler/predefined-jobs.ts to remove the usage of pretty.

Preconditions
1.

Steps to reproduce

  1. Navigate to '...'
  2. Click on '....'
  3. Scroll down to '....'

Expected Result
1.

Actual Result
1.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here. Here you can paste log entries too or any other useful information that may help with the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/enhancement Enhancement issue
Projects
No open projects
Status: Done
3 participants