Skip to main content Link Search Menu Expand Document (external link)

Local Folder Listener

Overview

The Local Folder Listener monitors file folders for files and will execute a pre-defined Job Configuration (config-id) when triggered.

Listener Configuration

Note that the File Folder Listener Service must be restarted for any configuration changes to take effect. Make sure you have already completed: File Folder Listener Authorization

listeners.yml (ProgramDataDirectory)/Actian/FileFolderListener/conf/listeners.yml

NOTE: indentation is critical for YAML syntax!

Example:

listeners:
  - id: local-listener-folder-accounts
    config-id: 90378
    listener-type: local
    active: true
    source-directory: C:/DataSources/accounts
    include-pattern: ^Accounts.*
    exclude-pattern: ^skipme.txt
    filename-override: Accounts.txt
  - id: local-listener-folder-contacts
    config-id: 90379
    listener-type: local
    active: true
    source-directory: C:/DataSources/contacts
    include-pattern: ^Contacts.*
    exclude-pattern: ^skipme.txt
    filename-override: Contacts.txt

Properties

PropertyDefaultDescription
id A unique identifier for the listener.
listener-type Available listener types: local, aws, gcp, azure.
config-id The Job Configuration id to run in Integration Manager.
activetrueWhether or not this listener is active.
source-directory The source directory to monitor for new files.
include-pattern Includes files if the file name matches the regular expression pattern you specify. See Cheatsheet, RegexPal
exclude-pattern Excludes files if the file name matches the regular expression pattern you specify. See Cheatsheet, RegexPal
filename-override This value will override the filename passed to Integration Manager, regardless of the original source file name. The original source file name will always be used for backup and error files.
auto-create-directoriestrueAutomatically create missing directories in the source-directory path.
recursivefalseLook for files in all the sub-directories of the source-directory as well.
flatten-directoriesfalseFlatten the file name path to strip any leading paths, so it’s just the file name. This allows you to consume recursively into sub-directories, but only track the filename for backup and error purposes.