Hello Derek, nice idea. But there is a problem with the tail command in your perl script. In /etc/logadm.conf is a line for rotating svc logs. Each time a logfile got rotated, the tail command wouldn't catch log lines any more. In other words: after rotating a logfile (truncating file or creating a new file) by logadm, tail command begins to just hang around and doing (almost) nothing.
Possible solution: There is a linux (or GNU) version of tail which is able to catch this type of file change. I guess gtail may be available from software companion!? Possible solution 2: write perl code to do proper logfile reading and catching rotated logfiles. This message posted from opensolaris.org