I am monitoring a log which has two types of errors:
1: "ERROR" - which isn't a problem
2: "[ERROR]" - which is a problem.
My logrt is picking up both, because I'm matching ERROR. However, the "[]" are used in regex matching. Does anyone know how I can escape out of them? If this was a shell script, I'd enter the following:
"\[ERROR\]"
Thanks in advance.
1: "ERROR" - which isn't a problem
2: "[ERROR]" - which is a problem.
My logrt is picking up both, because I'm matching ERROR. However, the "[]" are used in regex matching. Does anyone know how I can escape out of them? If this was a shell script, I'd enter the following:
"\[ERROR\]"
Thanks in advance.