This is a sample python multicast program that is very simple and can be adapted for any task that requires forwarding lines of text to one or more parties.
To forward system log via multicast to group 22.214.171.124 at port 31337:
tail -f /var/log/messages | logcaster 126.96.36.199 31337
On the client side, to receive the above log file:
logrecv 188.8.131.52 31337 > /var/log/remote_messages
It assumes that the default network device is 'eth0'. This will not be true for other systems (eg. BSD) or even your own Linux machine. Edit logcaster.py to reflect the right device name.
If the machine you run on doesn't resolve to a proper IP address for it's hostname, then this script will fail.
logcaster-0.1.tar.gz (07 May 2005) Initial Release
You can reply to me about this on Twitter: Tweet to @liquidx