Identifying input files
Your application reads files from the configured input directory or directories. Many different file types can appear in these directories but you are interested in just a subset of the files. To read only the files you are interested in, you configure a regular expression to identify the files. Additionally, you can configure to use nanosecond precision when scanning for files.
About this task
Set parameters to read the file types you need and to work with nanosecond precision when scanning input files.
Procedure
- In the file <PathToYourApplication>/config/config.cfg, find the ite.ingest.directoryScan.processFilePattern parameter description
-
Assign the parameter a regular expression to identify the files to read, for example ite.ingest.directoryScan.processFilePattern=.*_[0-9]{14}.asn$
-
By default nanosecond precision is turned on when scanning input directories. To switch it off, find the parameter description ite.ingest.directoryScan.nanoSecondsPrecision in the file <PathToYourApplication>/config/config.cfg
-
Disable nanosecond precision by setting the parameter to off as follows: ite.ingest.directoryScan.nanoSecondsPrecision=off