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.js
installed. - Run
npm install
to install any dependencies. - Run the script using
node src/main.js <log_file_path>
. Runnpm run start
oryarn start
to run default filedata/programming-task-example-data.log
. - Run
npm run test
oryarn test
.
- The log file is reasonably small and can fit into memory for analysis.