Learn how to configure the Automic IG S3 agent to monitor or process multiple files using Regular Expressions (RegEx) instead of standard wildcards. This article also addresses how to handle logic for failing jobs when multiple files match the criteria.
Standard OS wildcard globbing (e.g., *.txt) is interpreted as a literal filename by the S3 agent and is not supported for pattern matching.
To implement "multiple file" monitoring or processing, Regular Expressions must be enabled within the job definition.
Configuration Steps:
.*\.csv.*\.txtcdm.*\.csv.*\.csvprefix=folder/subfolder/Failing Jobs on Multiple Matches: Currently, the S3 agent processes all files matching the pattern. To fail a job when more than one file is found: