#! /bin/sh ### ### checkerrors - checks the splunk log files for any errors and reports back. ### ### Kirk Waingrow 2009 ### LOGPATH="/opt/splunk/var/log/splunk" list="splunkd.log audit.log license_audit.log metrics.log web_access.log web_service.log" for i in $list do echo "$i

" grep -i error $LOGPATH/$i | tail -10 echo "


" done