-
Home
- Studio Monitors with Content 11
Folder
The Folder Monitor monitors a directory. This Monitor comes handy when an application actively uses directories for its operations. The Folder Monitor measures the directory size, growth and flow to:
- ensure that the application is not overloaded (e.g.: number of files to be processed)
- measure the application activity (how many files have been removed, that is, how many have been processed)
- check the age of the newest file to know whether the data is coming in properly
- check the age of the oldest file to know whether the application is running late in processing queued files.
You can use the %{TIME:<date-time-format>}
macro in the Folder Path to dynamically assign the current date or time in the folder name. Refer to Date and Time Formats for Macros for more details.
Advanced file monitoring is possible with the Folder Monitor through filters and a wide range of analysis tools (Dynamic Object, Numeric Value Extraction, Text Pre-Processing, String Search, and Value Map).
To monitor a folder, you must configure the properties below:
Property | Description |
---|---|
Folder Path | Path to the folder (directory) to be monitored (Example: C:\Users\Default\Downloads ). |
Include Subfolders | Select this option to include all sub-folders of the above-specified folder when collecting data. |
Filter Files | Enter a mask to have Monitoring Studio X monitor only the corresponding files. You can use the ? and * wildcards and several masks can be specified, separated by “;” (Example: .txt;myFiles?.log;file.* ). |
Credentials to Read the Folder | Credentials required to read the folder. By default, System Credentials are used. |
Display Name | Name to identify the Folder instance in TrueSight Operations Management. |
Internal ID | ID to be used to store the Folder Monitor configuration in the PATROL Agent configuration. This Internal ID is automatically generated based on the folder path provided but can be edited if needed. |
Collect Schedule | How often new data is collected. A new collect can be performed from once every second, to once in a day. By default, the collect schedule is set to 2 minutes. |
When Folder Is Empty | Action to be performed by Monitoring Studio X on the time-based attributes (Last Modified File Elapsed Time, Longest Time File Remains In and Oldest Modified File Elapsed Time) when the monitored folder is empty. Possible values are:
|
Timeout After | Time in seconds after which the Folder collector will be stopped (Default: 30 seconds). When a timeout is reached, an error is reported in the Template's Collection Error Count parameter. |
At this time, you can run the Dry Run feature to simulate the execution of this Monitor on a specific host and therefore verify that the output is conform to the expected result.
Refer to:
- Content Parsing Monitors to know how to analyze the result of the Monitor execution.
- Studio Folder for more information about the parameters available and the thresholds set by default.
- Alert Messages and Actions to know how to configure alerts on parameters.