The File Content component scans for the existence or occurrences of a specified string pattern within application and system log files and uses those file in the application profile of which it is a part. It is intended for scanning text files such as logs, for example, and not binary files. For best performance, select as few files to scan as possible. Using regular expressions to specify filename and scan pattern can affect performance. It is imperative to create detailed regular expressions, specifically for specifying the scan pattern, in order to achieve the best results.
Important: This component is only available for use after upgrading to WhatsUp Gold v16.4.1.
Configure the following for the file content component:
Note: Wildcards expressions can be used to filter your file search results. For example, to list all text files with .txt extension, you would use: *.txt
Or, to find all text files named file_1.txt, file_2.txt, you would use: file?.txt
For these examples, the * wildcard is used for matching multiple characters and the ? wildcard is used for matching a single character.
Important: Only single line expressions are supported.
Note: If the Scan only the content added to the file since the last poll option is selected, WhatsUp Gold tracks the offset within the file reached during scanning, then picks up from that point during the next scan. This is not necessarily the end of the file as a timeout could result in not reaching the end of the file. If a file scanned is deleted, then re-created with new content, then one of two things can happen: If the recreated file is smaller than the last scanned offset for that file, WhatsUp Gold start scanning from the beginning of the file. Or, if the recreated file is the same size or larger than the last scanned offset, then WhatsUp Gold picks up the scanning from the last scanned offset.
Specify the number of instances of the pattern the component must find to report as either up or down.