ssd-team-30_hYLofIFh.1.mp4
Designed and developed a versatile Bash-based log parser capable of analyzing system logs across multiple operating systems, including Ubuntu, Windows, Solaris, and macOS, enhancing cross-platform system monitoring and troubleshooting.
Flexible Input Handling: Supports parsing of default system logs and custom log files provided via command-line arguments.
Date and Time Filtering: Enables filtering of log entries based on specific dates and time ranges to focus on relevant data subsets.
Dynamic Classification: Utilizes regular expressions to categorize log messages into Severe Errors, Mild Errors, Warnings, and Successes.
Specific Error Tracking: Maintains detailed counts for critical error types such as Out of Memory (OOM) errors, segmentation faults, memory allocation failures, kernel bugs, and disk I/O issues on a per-application basis.
Associative Arrays: Implements Bash associative arrays to efficiently store and count occurrences of different error categories and specific error types.
Comprehensive Summaries: Generates summarized reports detailing the number of severe errors, mild errors, warnings, and successful operations, providing a clear overview of system health.
Graph Generation with Gnuplot: Integrates Gnuplot to create visually appealing PNG graphs representing error and success counts, facilitating easy interpretation of log data.
Color-Coded Outputs: Enhances readability by applying ANSI color codes to terminal outputs, distinguishing between different error categories and highlighting key information.
Spinner Animation: Incorporates a spinner animation to indicate processing activity, improving user experience during long-running operations.
Structured Data Output: Exports error counts to a file error_counts.dat for potential integration with other monitoring tools or further data analysis.
Modular Design: Facilitates extensibility by allowing the addition of more data types and integration with auxiliary scripts for extended functionality.
-
Give executable permissions to every script by running the following command:
chmod +x <script_name>
-
Run the log analysis through
driver.sh:./driver.sh
-
To debug and run a specific script, use the following structure:
sudo ./test_auth.sh <date: yyyy-mm-dd> <start_time: hh:mm:ss> <end_time: hh:mm:ss>
- Custom Debug Scripts : Replace test_auth.sh to desired script.
Keywords- tutorial, from-scratch, how-to, example, demo, install, run, dataset, colab, c++, linux, system-calls, object-detection, opencv