Service Operations Insight

 View Only
  • 1.  How to parse on Event Policy

    Posted Dec 22, 2016 06:16 AM

    Afternoon Everyone,

     

    I would like to get a value from a variable. I have already use fn:parse to parsing the value from variable but it doesn't work.

     

    Let say I have value like this server18_FRONTEND_FE003 and I want a value after last underscore or FE003.

    I have tested the regex and it's working well, please see below picture.

     

    but when i tried the regex on event policies it does not work, here's the assigned value fn:Parse(${pattern1.Summary},'([^_]*$).*') 

     

    Does anyone know a way to apply this regex [^_]*$ into assigned value?

     

    Best Regards,

    Okik



  • 2.  Re: How to parse on Event Policy
    Best Answer

    Posted Dec 22, 2016 06:35 AM

    Hi Okik,

     

    Try this pattern: .*_(.*?)$.

    fn:Parse(${pattern1.Summary},'.*_(.*?)$')  

     

    MichaelBoehm



  • 3.  Re: How to parse on Event Policy

    Broadcom Employee
    Posted Dec 23, 2016 05:55 AM

    Hi Okik,

     

    Please mark the response as correct if it answered your query. This will help the entire community finding the right answer.