Jump to: navigation, search

Regular Expressions

This section describes how to create regular expressions used for custom indexes by LFMT Indexer and/or sensitive data scrubbing by LFMT Collector.

Important
  • Genesys does not create, validate or support customer regular expressions required within LFMT
  • Genesys regex guidance made be provided, but the customer is responsible for creation, validation, testing and support of user defined LFMT regexes
  • Genesys strongly recommends the customer comprehensively tests the regular expressions that you want to use for LFMT Indexing and Scrubbing before you define them in the LFMT Client
  • A good resource to test LFMT Regexes would be the Genesys Log File Masking Utility (LFMU) as it uses the same Regex Engine approach for masking log files

Creating Regular Expressions

  • LFMT regular expressions are created using Java Regular Expression protocol. In the case of both indexing and scrubbing, regular expression groups identify the data to be indexed or scrubbed.
  • Given the following regular expression:

    Regextable2.png

    The regular expression will attempt to match:

    1. \t - A tab character.
    2. AttributeCallUUID - The text AttributeCallUUID.
    3. \t - A tab character.
    4. ' - A single quote.
    5. \S+ - A number of non-whitespace characters.
    6. ' - A single quote.
  • In the above expression, the () surround the \S+ so as to define it as a group.
  • The text matched inside the group will be that which is indexed in the database, or scrubbed from the file.
  • Applying the expression above to the following application log file as an index.

    Regexlog.png

    Creates an entry in the LFMT Database where - CallUUID = D0PIFCQ87H5MH67ITU9179MC50000VEO
  • Tip
    Tools like Regex Coach (http://www.weitz.de/regex-coach/) can be used to test the syntax of the regular expressions.
    This page was last edited on November 26, 2021, at 11:55.
    blog comments powered by Disqus