Hi,
If you put these lines in your crontab (one for every logfile), just type the name in the subject line
cat /var/log/messages | mail -s "Log: messages Date: `date`" user@some.mail.box
The above example puts the name of the file (you typed it) and the date (automated) in the subject line.
If you want to automate this for several logfiles, you need to write a (simple?) shell script.
Code:
#!/bin/bash
cd /var/log
for THIS_FILE in *log
do
cat $THIS_FILE | mail -s "Log: ${THIS_FILE}" user@some.mail.box
done
This script can be run at a specific time/date from crontab.
As you probably can see, the above script is a rough example.
Hope this helps.