-
Notifications
You must be signed in to change notification settings - Fork 32
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
Data visualization script fails to generate certain graphs #4975
Comments
UpdateI took some artifacts from a recent build and tested the data graphic generation like the pipeline does. Cluster, remoted and analysisd were failing but after applying some fixes they were generated successfully. Statistic files used: artifacts.zip Binaries 🟢Artifacts: binaries.zip (venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s wazuh-analysisd.csv wazuh-apid_child_1.csv wazuh-apid_child_2.csv wazuh-apid_child_3.csv wazuh-apid.csv wazuh_clusterd_child_1.csv wazuh_clusterd_child_2.csv wazuh_clusterd.csv wazuh-logcollector.csv wazuh-remoted.csv -t binary -d /tmp/test -n binaries
(venv) gasti@pop-os:~/work/wazuh-qa$ ls /tmp/test/
binaries_CPU.svg binaries_Disk_Write_Speed.svg binaries_PSS.svg binaries_SWAP.svg binaries_Write_Ops.svg
binaries_Disk_Read_Speed.svg binaries_Disk_Written.svg binaries_Read_Ops.svg binaries_USS.svg
binaries_Disk_Read.svg binaries_FD.svg binaries_RSS.svg binaries_VMS.svg Cluster (fixed) 🟢Previously failing, after some changes I was able to generate them successfully. Artifacts: cluster.zip (venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s agent-groups_send.csv agent-info_sync.csv integrity_check.csv integrity_sync.csv -t cluster -d /tmp/test -n cluster
(venv) gasti@pop-os:~/work/wazuh-qa$ ls /tmp/test
cluster_agent-groups_send.svg cluster_agent-info_sync.svg cluster_integrity_check.svg cluster_integrity_sync.svg Logcollector 🟢Artifacts: logcollector.zip (venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s active-responses_log.csv -t logcollector -d /tmp/test -n active-responses_log
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s audit_log.csv -t logcollector -d /tmp/test -n audit_log
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s df.csv -t logcollector -d /tmp/test -n df
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s last.csv -t logcollector -d /tmp/test -n last
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s maillog.csv -t logcollector -d /tmp/test -n maillog
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s messages.csv -t logcollector -d /tmp/test -n messages
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s netstat.csv -t logcollector -d /tmp/test -n netstat
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s secure.csv -t logcollector -d /tmp/test -n secure
(venv) gasti@pop-os:~/work/wazuh-qa$ ls /tmp/test
active-responses_log_bytes.svg df_bytes.svg maillog_bytes.svg netstat_bytes.svg
active-responses_log_events.svg df_events.svg maillog_events.svg netstat_events.svg
active-responses_log_target_drops.svg df_target_drops.svg maillog_target_drops.svg netstat_target_drops.svg
audit_log_bytes.svg last_bytes.svg messages_bytes.svg secure_bytes.svg
audit_log_events.svg last_events.svg messages_events.svg secure_events.svg
audit_log_target_drops.svg last_target_drops.svg messages_target_drops.svg secure_target_drops.svg Remoted (fixed) 🟢Previously failing, after removing a header that was not in the .csv file it worked. Artifacts: remoted.zip (venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s wazuh-remoted_stats.csv -t remote -d /tmp/test -n remoted
(venv) gasti@pop-os:~/work/wazuh-qa$ ls /tmp/test
remoted_events_info.svg remoted_queue_size.svg remoted_recv_bytes.svg remoted_tcp_sessions.svg Analysisd (fixed) 🟢Previously failing, after removing some headers that were not in the .csv file it worked. Artifacts: analysisd.zip (venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s wazuh-analysisd_stats.csv -t analysis -d /tmp/test -n analysisd
(venv) gasti@pop-os:~/work/wazuh-qa$ ls /tmp/test
analysisd_alerts_info.svg analysisd_decoded_events.svg analysisd_queue_usage.svg |
UpdateDuring #4890, some changes were made to the statistics generation script which now gathers data from the API. The files generated from the API information are completely different to the ones used previously and there were no changes to the data visualization script, meaning that their graphics generation will fail. I created the following issue to solve this: #5022 |
UpdateFixed some linting errors and updated the changelog. |
UpdateI launched a build with the changes in the QA package but the graphics are not being generated because there have been several changes in the name of the columns of every file inside the Build: https://ci.wazuh.info/job/CLUSTER-Workload_benchmarks_metrics/471 I will leave the issue on hold until we decide how to proceed. |
UpdateWe decided to fix the graphics generation for the Statistics files used: artifacts.zip Logcollectord (fixed) 🟢Graphs: graphs.zip (venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s active-responses_log.csv -t logcollector -d /tmp/test -n active-responses_log
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s audit_log.csv -t logcollector -d /tmp/test -n audit_log
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s df.csv -t logcollector -d /tmp/test -n df
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s last.csv -t logcollector -d /tmp/test -n last
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s maillog.csv -t logcollector -d /tmp/test -n maillog
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s messages.csv -t logcollector -d /tmp/test -n messages
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s netstat.csv -t logcollector -d /tmp/test -n netstat
(venv) gasti@pop-os:~/work/wazuh-qa$ data-visualizer -s secure.csv -t logcollector -d /tmp/test -n secure
(venv) gasti@pop-os:~/work/wazuh-qa$ ls /tmp/test/
active-responses_log_Bytes.svg 'audit_log_Target Drops.svg' last_Events.svg messages_Bytes.svg 'netstat_Target Drops.svg'
active-responses_log_Events.svg df_Bytes.svg 'last_Target Drops.svg' messages_Events.svg secure_Bytes.svg
'active-responses_log_Target Drops.svg' df_Events.svg maillog_Bytes.svg 'messages_Target Drops.svg' secure_Events.svg
audit_log_Bytes.svg 'df_Target Drops.svg' maillog_Events.svg netstat_Bytes.svg 'secure_Target Drops.svg'
audit_log_Events.svg last_Bytes.svg 'maillog_Target Drops.svg' netstat_Events.svg |
Description
During the research performed in https://github.com/wazuh/wazuh-jenkins/issues/4748, we found that the data visualization script used to generate the graphics from the data collected is not working when used on the log or statistics (except logcollectord) files.
These were the errors found:
Type error
Key error
We should investigate the root cause of the failures, apply a fix and verify that all graphs are generated successfully.
The text was updated successfully, but these errors were encountered: