DX Application Performance Management

 View Only
  • 1.  Skipping errorsnapshot with a special character

    Broadcom Employee
    Posted Feb 06, 2017 07:09 AM

    Dear All,
    I need skip some errors with special character on error description.
    Follow a example:

     

    Validar Dependência para Conferência

     

    The Error is in "Portuguese - Brasil" and I tried configure the property
    introscope.agent.errorsnapshots.ignore.0=*Validar Dependência para Conferência*
    and this didn't work.

     

    I tried change the special character to the ASCII code and this didn't work too.

     

    Please, someone can give me one tip of how I can configure this skip?

     

    Thanks,

     

    Vinícius Campelo



  • 2.  Re: Skipping errorsnapshot with apecial character

    Broadcom Employee
    Posted Feb 06, 2017 09:19 AM

    Hi Vinicus:

    I am trying to get someone to respond

    Thanks

    Hal German



  • 3.  Re: Skipping errorsnapshot with a special character

    Broadcom Employee
    Posted Feb 06, 2017 10:07 AM

    Hi Vincius:

    Can you simplify the expression  introscope.agent.errorsnapshots.ignore. Does something like this work?

    *Validar Depend*ncia para Conferência*

     

    The docs also state the following. Does that apply here? 

     

    Important! The property introscope.agent.errorsnapshots.ignore cannot be used to filter SOAP error messages.

     

    Thanks

    Hal German



  • 4.  Re: Skipping errorsnapshot with a special character
    Best Answer

    Broadcom Employee
    Posted Feb 06, 2017 10:09 AM

    Hello Vinícius,

     

    I have traced through the code and I believe that the comparison of the error message is being handled by the following:
    static public boolean shouldIgnore(String errorMessage)
    {
    for (int i = 0; i < IgnoreGlobs.length; i++)
    {
    if (IgnoreGlobs[i].matches(errorMessage))
    {
    return true;
    }
    }
    return false;
    }
    In this case, the IgnoreGlobs array is a String array containing the patterns to ignore what you specified in the IntroscopeAgent.profile. The errorMessage variable is the current error message. The method used to determine if there is a match is the Java String method "matches". The Java String method "matches" uses regular expression pattern matching not Windows wildcard matching.


    Based on this, I suggest you to run a test by specifying the following as the pattern:
    .*Validar Dependência para Conferência.*

     

    I have done a quick validation here: http://www.freeformatter.com/java-regex-tester.html

    and it works.
    If the problem persists open a support case and attach Agent DEBUG logs

     

    Regards,
    Sergio



  • 5.  Re: Skipping errorsnapshot with a special character

    Broadcom Employee
    Posted Feb 06, 2017 10:16 AM

    Marking as answered since either using a regex instead of a matching expression or opening a case will resolve this.

    This may need a KB or Doc Bug submitted.



  • 6.  Re: Skipping errorsnapshot with a special character

    Broadcom Employee
    Posted Feb 06, 2017 01:00 PM

    Dear All,
    Thanks for all replies.
    I tested and worked only with * .

     

    *Validar Depend*ncia para Conferência*

     

    It's very curious because in REGEX would be .* , correct?

     

    Thanks.

     

    Vinícius Campelo



  • 7.  Re: Skipping errorsnapshot with a special character

    Broadcom Employee
    Posted Feb 06, 2017 01:05 PM

    If the string you want to use does not start at the beginning, then you would need to use the wildcard '.*' in front and behind your substring.



  • 8.  Re: Skipping errorsnapshot with a special character

    Broadcom Employee
    Posted Feb 06, 2017 01:08 PM

    Hi:

    To be clear 

    *Validar Depend*ncia para Conferência*

    And 

    .*Validar Dependência para Conferência.*

     

    Did either work?

     

    Thanks

    Hal German

     



  • 9.  Re: Skipping errorsnapshot with a special character

    Broadcom Employee
    Posted Feb 06, 2017 01:21 PM

    Working(All special characters changed to *):

     

    *Validar Depend*ncia para Confer*ncia*

     

    Not working:

     

    .*Validar Depend.*ncia para Confer.*ncia.*

     

    Thanks.