{"id":26459992,"url":"https://github.com/zoldax/pulsequeryviewer","last_synced_at":"2025-10-10T17:47:02.915Z","repository":{"id":211074996,"uuid":"712550635","full_name":"zoldax/PulseQueryViewer","owner":"zoldax","description":"PulseQueryViewer is a Python script for parsing QRadar PULSE Dashboard JSON exports, displaying the results in a color-coded console output or saving them to a CSV file or MD file","archived":false,"fork":false,"pushed_at":"2025-08-27T15:16:26.000Z","size":47,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T00:30:15.679Z","etag":null,"topics":["blueteam","cybersecurity","qradar","qradar-documentation","qradar-pulse","qradar-tools","siem","soc"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoldax.png","metadata":{"files":{"readme":"README-ERROR.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-31T17:32:22.000Z","updated_at":"2025-08-27T15:16:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"7da8ad01-1799-4a9d-ade3-7be0a7265ac4","html_url":"https://github.com/zoldax/PulseQueryViewer","commit_stats":null,"previous_names":["zoldax/pulsequeryviewer"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zoldax/PulseQueryViewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoldax%2FPulseQueryViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoldax%2FPulseQueryViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoldax%2FPulseQueryViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoldax%2FPulseQueryViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoldax","download_url":"https://codeload.github.com/zoldax/PulseQueryViewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoldax%2FPulseQueryViewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004823,"owners_count":26083783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blueteam","cybersecurity","qradar","qradar-documentation","qradar-pulse","qradar-tools","siem","soc"],"created_at":"2025-03-19T02:22:23.010Z","updated_at":"2025-10-10T17:47:02.899Z","avatar_url":"https://github.com/zoldax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PulseQueryViewer Error Handling and Logging Summary 📜\n\nThis document provides a summary of the error handling and logging capabilities of the PulseQueryViewer tool.\n\n### 🖋️ Author\n- **Pascal Weber (zoldax)**\n\n## Table of Contents 📑\n\n1. [Input Validation](#input-validation)\n2. [File Handling](#file-handling)\n3. [JSON Parsing](#json-parsing)\n4. [Data Extraction](#data-extraction)\n5. [Output Writing](#output-writing)\n6. [Miscellaneous](#miscellaneous)\n\n## Input Validation 📋\n\n- **Missing Input**: \n  - **Error**: The script checks if the user has provided the required JSON files as input. If no files are specified, an error message is displayed.\n  - **Logging**: The error along with a timestamp is logged to a designated error log file.\n\n- **File Extension Check**: \n  - **Error**: The script ensures that the provided input files have a `.json` extension. If not, an error message is displayed.\n  - **Logging**: The error and the name of the incorrectly formatted file are logged.\n\n## File Handling 📁\n\n- **File Existence**: \n  - **Error**: Before attempting to open a file, the script checks if the file exists. If a specified file is not found, an error message is displayed.\n  - **Logging**: The error and the name of the missing file are logged.\n\n- **File Permissions**: \n  - **Error**: The script checks for the necessary file permissions before reading from or writing to a file. If permissions are lacking, an error message is displayed.\n  - **Logging**: The error, file name, and required permissions are logged.\n\n## JSON Parsing 📊\n\n- **Format Validation**: \n  - **Error**: The script validates the format of the JSON data. If the data is not valid JSON, an error message is displayed.\n  - **Logging**: The error and details of the invalid format are logged.\n\n- **Data Integrity**: \n  - **Error**: The script checks the integrity of the required data fields in the JSON file. If expected fields are missing or have incorrect data types, an error message is displayed.\n  - **Logging**: The error and details of the missing or incorrect fields are logged.\n\n## Data Extraction 📈\n\n- **Empty Data**: \n  - **Error**: If the JSON file does not contain any queries or the required data, the script handles this gracefully and informs the user that no data was found.\n  - **Logging**: A message stating that no data was found is logged along with the file name.\n\n## Output Writing 📝\n\n- **CSV Writing**: \n  - **Error**: The script handles errors that might occur while writing to a CSV file, such as permission issues or disk space issues, and displays an appropriate error message.\n  - **Logging**: The error, along with details such as file name and possible reasons, are logged.\n\n- **Markdown Writing**: \n  - **Error**: Similarly, errors encountered while writing to a Markdown file are caught, and an error message is displayed.\n  - **Logging**: The error and relevant details are logged.\n\n## Miscellaneous 🛠️\n\n- **Argument Parsing**: \n  - **Error**: The script provides error handling for command-line arguments, ensuring that the user is informed of any incorrect usage or invalid options.\n  - **Logging**: Any argument parsing errors are logged, along with suggestions for correct usage.\n\n- **Graceful Termination**: \n  - **Error**: In any error scenario, the script aims to terminate gracefully, providing clear error messages and not leaving any partial or corrupt output files.\n  - **Logging**: A termination message is logged, indicating whether the script ended successfully or due to an error.\n\n---\n\nBy handling these various error scenarios and logging pertinent information, PulseQueryViewer aims to provide a robust, user-friendly, and traceable experience.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoldax%2Fpulsequeryviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoldax%2Fpulsequeryviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoldax%2Fpulsequeryviewer/lists"}