Ive got a server running Nagios, and I want to post its logs onto another site. Ive been trying to figure out a way I can post the results by modifying the code, but it seems not to be a great idea with updates, then I thought I could monitor more log files, so it wouldnt be great to modify each program to do it.
So, my next idea was to monitor the log file, and post the results. I can use the command:-
sudo less +F /var/log/nagios/nagios.log
But it echos out onto the main console. Is it possible to post the changes to the log file to a webpage using a curl script?