Filtering out messages from a source

Comments

2 comments

  • Avatar
    Kevin

    Hi Colby,

    The regular expression filters need to match ALL of the data within the entire log message, so while .* added to the front and back of the segment text (Ex. .*Google Update.*) will work with single line messages this will not work for messages that are multi-lines.  For multi-line log messages, such as the one you provided in your example, we need to wrap the segment with** (?s).***, which will match any character and/or a newline, this is in order to match the text in all the lines before and after the line containing our text.

    Give the following expression a try and let us know how this works for you.

    (?s).*Google Update(?s).*

    0
    Comment actions Permalink
  • Avatar
    Kevin Francis

    This article saved me! Thanks!!!!

    0
    Comment actions Permalink

Please sign in to leave a comment.