Good idea for a script.
How about just grabbing a VMWare and installing say Ubuntu on it. Write your script for logs you find in there.
Then take another distro like Fedora and see if the script works on there too. If not go and check how to make it working dynamicallyAfterwards go for a 3rd distro and try it on there.
Make it so that applications can be specified like clean ssh,ftp,www or alike and it will check in the common places or even try to find the log setting in the conf files of the app.


Afterwards go for a 3rd distro and try it on there.
