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

Remove Kibana APP from wazuh-qa repository #4900

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions deps/wazuh_testing/wazuh_testing/data/api_kibana_template.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ remote:
host: localhost
port: 55000

kibana:
enabled: True

extra_load:
enabled: True
api_requests_percentage: 50
15 changes: 0 additions & 15 deletions deps/wazuh_testing/wazuh_testing/scripts/simulate_api_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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()
Expand Down
Loading