[Snort-users] snortstat_pl

Tedi Heriyanto tedi.heriyanto at ...11827...
Thu Dec 3 05:31:12 EST 2009


Pradeep Lamabam wrote:
> hello,
> am using snort with barnyard, base,mysql. all is working fine. had also
> used snortstat_pl as a summary tool. works equally fine. what i had
> trouble though was with running snortstat_pl script as cron and to mail
> me the summary
> the command i used is :
> 59 23 * * * cat /var/log/snort/alert | snort\_stat.pl <http://stat.pl> |
> mail -s ''Snort Report`` <myid>@yahoo.com <http://yahoo.com>
You can put the commands :
cat /var/log/snort/alert | snort\_stat.pl <http://stat.pl> |
mail -s ''Snort Report`` <myid>@yahoo.com <http://yahoo.com>

into a shell script and in the cron entry you just call that script :

59 23 * * * /home/user/snort-log-mailer.sh



-- 
Best Regards,

Tedi Heriyanto
Website		: http://tedi.heriyanto.net
Blog		: http://theriyanto.wordpress.com
PGP Key ID      : 0xAC22DD11
PGP Fingerprint : 470A FF01 B4CF 93A4 78E5 0EAC 0103 BC76 AC22 DD11




More information about the Snort-users mailing list