A customer has asked you for a way to provide on-demand monitoring of various unix-based servers without having to log into each individual machine and opening up the log files found in /var/log
. The customer has asked for the ability to issue a REST request to a machine in order to retrieve logs from /var/log
on the machine receiving the REST request.
/var/log
n
events of specified file Bonus: The customer has a stretch goal for the ability to issue a REST request to one "master" server in order to retrieve logs from a list of machines provided in the request. For this, there's no requirements for the protocol between the master server and other servers.
Bonus: Basic UI for demo purposes.
npm i
.env.example
to .env
npm run build
to compile the typescriptnpm start
to start the servertest/resources/small.log
& test/resources/medium.log
to /var/log
npm test
to run all tests