I am working in a Linux environment, I would like to gather all the logs from the machine pool on a unique machine X. There are several log files I need to move and I am not sure about the way I should do it.
Should I make the machines send the logs from time to time to the specific monitoring one, I would configure a cron on every machine, that creates a copy of the logs and send it by scp.
Or should I configure the monitoring machine to go and get logs files, that would imply I created a specific user "logger" on every machine to which X would connect with scp (logger would have the reading rights on the logs I need).
I do not know how many machines I will have in my pool so it can go from 1 to 99999 machines. Logs files path may differ from a machine to another. Security is important in my case, I don't want someone else to be able to intercept or read the logs.
I would like the process to be the most simple as possible and not use library nor other software if possible.