Name: Medini Mudraboina Roll Number: 240645
To compile the C++ source code, open the terminal and run the following command: g++ -O2 240645_Medini.cpp -o analyzer
The program takes inputs from the command line. Here are the exact commands to run the three supported queries:
./analyzer --file test_logs.txt --version v1 --buffer 256 --query word --word error ./analyzer --file test_logs.txt --version v1 --buffer 256 --query word --word DEVOPs
./analyzer --file test_logs.txt --version v1 --buffer 256 --query top --top 10
./analyzer --file1 test_logs.txt --version1 v1 --file2 verbose_logs.txt --version2 v2 --buffer 256 --query diff --word error ./analyzer --file1 test_logs.txt --version1 v1 --file2 verbose_logs.txt --version2 v2 --buffer 256 --query diff --word request