AnsweredAssumed Answered

Need help with RegEx in Logmon...

Question asked by rith on Jan 16, 2018
Latest reply on Jan 19, 2018 by rith

Please help me understand why this regex doesn't work.

I've tried with, and without format rules.

With format rules my 'start expression' is ({) and 'end expression' (})

 

Regex:

/.*(Application)\W+(.*zip).*(Status)\W+((?!STARTED)\w+).*(Updated)\W+(.*\w+).*/

or

/(Application)\W+(.*zip).*(Status)\W+((?!STARTED)\w+).*(Updated)\W+(.*\w+)/

 

Log-file looks like this:

[
   {
      "Application": "items-inventory-api-mos-test items_inventory_api-v1.0-external-3.8.x.zip",
      "Status": "FAILED",
      "Updated": "a month ago"
   }
]

 

It seems like the watcher only can manage to do one line at a time, even with the format.

Outcomes