diff --git a/deps/wazuh_testing/wazuh_testing/data/api_kibana_template.yaml b/deps/wazuh_testing/wazuh_testing/data/api_kibana_template.yaml deleted file mode 100644 index 0488aa8b79..0000000000 --- a/deps/wazuh_testing/wazuh_testing/data/api_kibana_template.yaml +++ /dev/null @@ -1,40 +0,0 @@ -requests: - - - endpoint: /cluster/status - method: get - parameters: {} - body: {} - - - endpoint: /agents - method: get - parameters: - limit: 1 - q: "id!=000" - body: {} - - - endpoint: /manager/info - method: get - parameters: {} - body: {} - - - endpoint: /security/users/me/policies - method: get - parameters: {} - body: {} - - - endpoint: /agents/summary/status - method: get - parameters: {} - body: {} - - - endpoint: /manager/stats/remoted - method: get - parameters: - pretty: True - body: {} - - - endpoint: /manager/stats/analysisd - method: get - parameters: - pretty: True - body: {} diff --git a/deps/wazuh_testing/wazuh_testing/data/api_simulator_config.yaml b/deps/wazuh_testing/wazuh_testing/data/api_simulator_config.yaml index 5b9b53fd73..d8aca4e5b0 100644 --- a/deps/wazuh_testing/wazuh_testing/data/api_simulator_config.yaml +++ b/deps/wazuh_testing/wazuh_testing/data/api_simulator_config.yaml @@ -2,9 +2,6 @@ remote: host: localhost port: 55000 -kibana: - enabled: True - extra_load: enabled: True api_requests_percentage: 50 diff --git a/deps/wazuh_testing/wazuh_testing/scripts/simulate_api_load.py b/deps/wazuh_testing/wazuh_testing/scripts/simulate_api_load.py index c8becd8f19..49c91fe372 100644 --- a/deps/wazuh_testing/wazuh_testing/scripts/simulate_api_load.py +++ b/deps/wazuh_testing/wazuh_testing/scripts/simulate_api_load.py @@ -11,16 +11,12 @@ def get_arguments(): formatter_class=argparse.RawTextHelpFormatter) parser.add_argument('-f', '--foreground', dest='foreground', action='store_true', default=False, help='Enable logging in foreground mode') - parser.add_argument('-fr', '--frequency', dest='frequency', action='store', default=60, type=int, - help='Insert Kibana API requests interval') parser.add_argument('-t', '--time', dest='time', action='store', default=60, type=int, required=True, help='Time in seconds for the simulation') parser.add_argument('-l', '--log-path', dest='log_path', action='store', default='/tmp/wazuh_api_simulator.log', required=True, type=str, help='Log path file destination') parser.add_argument('-c', '--configuration', dest='configuration', action='store', required=True, type=str, help='Path to the configuration file') - parser.add_argument('-kt', '--kibana-template', dest='kibana_template', action='store', required=True, type=str, - help='Path to the Kibana request template') parser.add_argument('-et', '--extraload-template', dest='extraload_template', action='store', required=True, type=str, help='Path to the ExtraLoad request template') @@ -56,17 +52,6 @@ def main(): except Exception as extra_exception: extra_logger.error(f'Unhandled exception: {extra_exception}') - if configuration['kibana']['enabled']: - kibana_logger = CustomLogger('kibana_thread', file_path=options.log_path, foreground=options.foreground, - tag='Kibana').get_logger() - try: - kibana_thread = APISimulator(HOST, PORT, request_template=options.kibana_template, - frequency=options.frequency, external_logger=kibana_logger) - kibana_thread.start() - thread_list.append(kibana_thread) - except Exception as kibana_exception: - kibana_logger.error(f'Unhandled exception: {kibana_exception}') - sleep(options.time) for thread in thread_list: thread.shutdown()