download logparser.pl

This script parses your syslog that receives ciscologs
and sends mail whenever a hit occurs (in the crontabinterval
you specify) and produces something like this:
From: your@mailadress.se
To: your@receiver.se
X-filter: bgpchange
X-filter: lineproto-alarm
X-filter: link-alarm
Subject: bgpchange,lineproto-alarm,link-alarm SUNET Oct  3 11:2[0-4]


----------------------------------
New entries in bgpchange
----------------------------------
Oct  3 11:20:59 sundsvall1     BGP-5-ADJCHANGE: neighbor 194.68.133.72=srp-5-0.b-gw.svl.netnod.se Down Peer closed the session
Oct  3 11:21:50 sundsvall1     BGP-5-ADJCHANGE: neighbor 194.68.133.72=srp-5-0.b-gw.svl.netnod.se Up 
Oct  3 11:22:50 sundsvall1     BGP-5-ADJCHANGE: neighbor 194.68.133.72=srp-5-0.b-gw.svl.netnod.se Down Peer closed the session
Oct  3 11:23:33 sundsvall1     BGP-5-ADJCHANGE: neighbor 194.68.133.72=srp-5-0.b-gw.svl.netnod.se Up 

----------------------------------
New entries in lineproto-alarm
----------------------------------
Oct  3 11:21:51 KTHNOC-2       LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet4/6, changed state to down
Oct  3 11:21:53 KTHNOC-2       LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet4/6, changed state to up

----------------------------------
New entries in link-alarm
----------------------------------
Oct  3 11:21:51 KTHNOC-2       LINK-3-UPDOWN: Interface FastEthernet4/6, changed state to down
Oct  3 11:21:53 KTHNOC-2       LINK-3-UPDOWN: Interface FastEthernet4/6, changed state to up