DX Application Performance Management

Need help on RegEx - sysEDGE

  • 1.  Need help on RegEx - sysEDGE

    Posted 05-21-2019 07:22 AM

    Hi All,

     

    We have a requirement as below.

    If there is a string "because it is being used by another process" and followed by another string "Email Sent" in the next immediate line (next immediate log entry), the alarm should not generate. However, if the string "because it is being used by another process" is not in the first line and having the "Email Sent" in the next immediate line should generate the alarm.

     

    Example Log Entry to not generate the alarm

    2019/05/15 14:25:32 frmJob.DataProcessStart: frmJob.DataProcessUnzipAndArchiveZip: ZipUtility.unzip: The process cannot access the file 'D:\FileNet\Applications\DataImEx\eSubToBFO\Process\XYZ.zip' because it is being used by another process.
    2019/05/15 14:25:33 Email Sent

     

    Example Log Entry to generate the alarm

    2019/05/15 14:25:32 frmJob.DataProcessStart: frmJob.DataProcessUnzipAndArchiveZip: ZipUtility.unzip: The process cannot access the file 'D:\FileNet\Applications\DataImEx\eSubToBFO\Process\XYZ.zip' because it is not available in the path.
    2019/05/15 14:25:33 Email Sent

     

    Please help me with the RegEx to handle the above two scenarios.

     

    Thank you.

    Regards,

    Rajashekar