The FileSet tag describes a set of Files.
These are XML attributes of the tag itself, as opposed to the attributes of the Entity monitored by Integrity Monitoring Rules.
| Attribute | Description | Required | Default Value | Allowed Values |
| base | Sets the base directory of the FileSet. Everything else in the tag is relative to this directory. | Yes | N/A | String values resolving to syntactically valid path (Path is not required to exist). Note: UNC paths are allowed by Windows Agents, but require that the remote system allow access by the "LocalSystem" account of the Agent computer. The Agent is a Windows service and runs as LocalSystem, aka NT AUTHORITY\SYSTEM. When accessing a network resource, the LocalSystem uses the computer's credentials, which is an account named DOMAIN\MACHINE$. The access
token presented to the remote computer also contains the "Administrators" group for the computer, so remote shares must grant read privileges to either the Agent computer's account, the Agent computer's Administrators group, or "Everyone". For testing access to UNC paths, use this technique to launch a Windows command
prompt running as a service under the LocalSystem account. With that you can try accessing network & local resources, or launch other applications that will run under the LocalSystem account. If the base value is not syntactically valid, the FileSet will not be processed. The rest of the config will be evaluated. |
| onChange | Whether the files returned should be monitored in real time. | No | false | true, false |
| followLinks | Will this FileSet follow symbolic links. | No | false | true, false |
These are the attributes of the FileSet that can be monitored by Integrity Monitoring Rules.
The following are the Short Hand Attributes, and the attributes to which they map.
Drives mounted as directories are treated as any other directory, unless they are a network drive in which case they are ignored.
NTFS based filesystems support the concept of alternate data streams. When this feature is used it behaves conceptually like files within the file.
echo plain > sample.txt
echo alternate > sample.txt:s
more < sample.txt
more < sample.txt:s
For FileSets, if no stream is specified, then all streams are included. Each stream is a separate Entity entry in the baseline. The available attributes for streams are:
The following example would include both streams from the demonstration above:
<include key="**/sample.txt" />
To include or exclude specific streams, the ":" notation is used. The following example matches only the "s" stream on sample.txt and not the main sample.txt stream:
<include key="**/sample.txt:s" />
Pattern matching is supported for the stream notation. The following example would include sample.txt, but exclude all of its alternate streams:
<include key="**/sample.txt" />
<exclude key="**/sample.txt:*" />
Key is a pattern to match against the path of the file relative to the directory specified by "base". This is a hierarchical pattern, with sections of the pattern separated by "/" matched against sections of the path separated by the file separator of the given OS
See the general description of include/exclude for their allowed attributes and sub elements. Only information specific to include/excludes relating to the FileSet Entity Set class are included here.
executable
Determines if the file is executable. This does not mean that its permissions allow it to be executed. Instead the contents of the file are checked, as appropriate for platform, to determine if the file is an executable file.