DX Infrastructure Manager

Expand all | Collapse all

Logmon Variable to pull filename and status code

  • 1.  Logmon Variable to pull filename and status code

    Posted 03-09-2015 04:12 PM

    Hi all,

     

    I'm trying to set up a logmon profile to pick up the filename and status.

     

    My testing is only bringing back the variable name in the alarm for some reason?

     

    I keep getting the alarm $var!

     

    The target string is:

    df49a1006ca45c08d12c6fe412a5b189c7dbe949,09/03/2015 09:30:24,1,Test_Error.csv,service.management@mdsuk.com,3

     

    The target file is a .csv and in the case shown above, I need the alarm to contain "Test_Error.csv" and the "3" at the end of the line.

     

    Does anyone know the regex to this?

     

    Thanks in advance.

     

    Sam



  • 2.  Re: Logmon Variable to pull filename and status code

    Posted 03-12-2015 04:32 PM

    if all the colums are seperated by a , then you really don't need regex you can just use the , as the seperator then you have all your colums available from position 1-2 and 2-3 etc....