LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Directory Listing - Multiple Patterns

    Employee
    Posted 02-15-2015 17:24

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: xathras

    Hi,

    Is it possible to pass multiple options into the patterns section of the directory listing.

    e.g. Lets say I want to scan DirectoryName /opt/software/ and all of its sub directories but then want to filter on items such as log, brd and brs only. Can that be achieved in Pattern section or will I need to cat results of 3 directory listing?

    Wayne


  • 2.  RE: Directory Listing - Multiple Patterns

    Employee
    Posted 02-18-2015 18:01

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ryeh

    I think you're right that you'd have to use three separate patterns and cat them. Though it might be easier (and quicker) just get all the files in the directory and then filter with something like:
    emit *
    where FileName.regexIsMatch(".(log|brs|brd)")


  • 3.  RE: Directory Listing - Multiple Patterns

    Employee
    Posted 03-01-2015 08:17

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: xathras

    Thank you. I like your suggestion with the regex