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 user used by Kibana in the cluster performance tests #1822

Merged
merged 1 commit into from
Sep 6, 2021

Conversation

mcarmona99
Copy link
Contributor

Related issue
#1799

This PR closes #1799.

Right now, we are using the APISimulator to simulate 2 different sources in our cluster performance tests:

  • Kibana requests
  • Kibana extra load

The related issue aims to change the user used in the API simulated to wazuh-wui when we simulate the API using the Kibana APP. Therefore, logs from Kibana requests and Kibana requests with extra load will indicate the user wazuh-wui instead of wazuh.

The API logs generated by the API tests will still have the wazuh user.

To do this, I have changed the default user and password used in the APISimulator class to wazuh-wui, as this class is only used to simulate the API when it is used by Kibana.

Actual logs:

2021/08/31 08:54:21 INFO: wazuh 172.31.15.42 "GET /cluster/status" with parameters {} and body {} done in 0.012s: 200
2021/08/31 08:54:28 INFO: wazuh 172.31.6.109 "GET /" with parameters {} and body {} done in 0.006s: 200
2021/08/31 08:54:29 INFO: wazuh 172.31.6.109 "PUT /agents/group/new_test_group/restart" with parameters {} and body {} done in 0.405s: 200
2021/08/31 08:54:29 INFO: wazuh 172.31.15.42 "GET /agents" with parameters {"limit": "1", "q": "id!=000"} and body {} done in 0.021s: 200
2021/08/31 08:54:38 INFO: wazuh 172.31.15.42 "GET /manager/info" with parameters {} and body {} done in 0.009s: 200
2021/08/31 08:54:46 INFO: wazuh 172.31.15.42 "GET /security/users/me/policies" with parameters {} and body {} done in 0.007s: 200
2021/08/31 08:54:55 INFO: wazuh 172.31.15.42 "GET /agents/summary/status" with parameters {} and body {} done in 0.035s: 200
2021/08/31 08:54:59 INFO: wazuh 172.31.6.109 "GET /" with parameters {} and body {} done in 0.007s: 200
2021/08/31 08:54:59 INFO: wazuh 172.31.6.109 "PUT /agents/restart" with parameters {} and body {} done in 0.530s: 200
2021/08/31 08:55:03 INFO: wazuh 172.31.15.42 "GET /manager/stats/remoted" with parameters {"pretty": "True"} and body {} done in 0.009s: 200
2021/08/31 08:55:12 INFO: wazuh 172.31.15.42 "GET /manager/stats/analysisd" with parameters {"pretty": "True"} and body {} done in 0.010s: 200

After the changes:

2021/08/31 13:11:28 INFO: wazuh 172.31.45.100 "GET /" with parameters {} and body {} done in 0.006s: 200
2021/08/31 13:11:28 INFO: wazuh 172.31.45.100 "PUT /agents/group/new_test_group/restart" with parameters {} and body {} done in 0.022s: 200
2021/08/31 13:11:31 INFO: wazuh-wui 172.31.79.11 "GET /cluster/status" with parameters {} and body {} done in 0.013s: 200
2021/08/31 13:11:39 INFO: wazuh-wui 172.31.79.11 "GET /agents" with parameters {"limit": "1", "q": "id!=000"} and body {} done in 0.010s: 200
2021/08/31 13:11:48 INFO: wazuh-wui 172.31.79.11 "GET /manager/info" with parameters {} and body {} done in 0.009s: 200
2021/08/31 13:11:57 INFO: wazuh-wui 172.31.79.11 "GET /security/users/me/policies" with parameters {} and body {} done in 0.007s: 200
2021/08/31 13:11:58 INFO: wazuh 172.31.45.100 "GET /" with parameters {} and body {} done in 0.007s: 200
2021/08/31 13:11:58 INFO: wazuh 172.31.45.100 "PUT /agents/restart" with parameters {} and body {} done in 0.020s: 200
2021/08/31 13:12:05 INFO: wazuh-wui 172.31.79.11 "GET /agents/summary/status" with parameters {} and body {} done in 0.009s: 200

@mcarmona99 mcarmona99 self-assigned this Aug 31, 2021
@davidjiglesias davidjiglesias merged commit 21847ee into master Sep 6, 2021
@davidjiglesias davidjiglesias deleted the feature/1799-change-user-api-simulator branch September 6, 2021 09:31
@snaow snaow mentioned this pull request Jan 27, 2022
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.

Change the user of the Kibana API load task to wazuh-wui
3 participants