This doesn't really particularly safe to me (assuming that exec.Command allows spaces in arguments):
cmd := exec.Command("grep", s, logName)
Since you are searching for the expression in just one log file, why not use Go's excellent regexp package?