This project parses a log file containing HTTP requests and reports:
- The number of unique IP addresses
- The top 3 most visited URLs
- The top 3 most active IP addresses
- Ensure you have
Node.jsinstalled. - Run
npm installto install any dependencies. - Run the script using
node src/main.js <log_file_path>. Runnpm run startoryarn startto run default filedata/programming-task-example-data.log. - Run
npm run testoryarn test.
- The log file is reasonably small and can fit into memory for analysis.