I'd hate to down-vote your question, but really, you should include some example of the syslog and show a bit more effort (ie. code stubs) or research that you've done.. however, I understand what's it's like to have no idea where to start.. so here is a bit of code that should get you started:
#set result variable equal to contents of syslog
set result [exec puts syslog]
#parse syslog line by line searching for error
foreach line [string trim [split $result "\n"]] {
#regex the error string
if {[regexp {Whatever Error Massage may look like!}]} {
puts "Warning, system error detected"
}
Here are some useful regex links for tcl: