Compare condition for checking strings in watcher is not Working?

The compare condition works only for numerics.

You need to use painless, like this

return ctx.payload.hits.hits.get(0)._source.syslog_message.contains('lang.OutOfMemoryError')

--Alex