I run a script as a daemon which gets started and stopped via
/etc/init.d on a Raspberry Pi. For a number of reasons - including limited local file storage - I'd like to direct stdout and stderr from the script to a remote server for logging and post-mortem analysis.
At the risk of asking an overly general question: what's the preferred technique for remote logging?
Should I create a second process on the Raspberry Pi that does
tail -f on whatever daemon creates? Would
syslog-ng be useful here? Should I expect to write custom code on the remote server, or are there packages already set up to do this sort of stuff?
Etc. I would be surprised if this wasn't already completely solved; I simply don't know what phrases and package names to Google.