Submit a ticketCall us

Systems Monitoring for Dummies
Our new eBook will teach you the fundamentals and help you create monitors and alerts that are effective, meaningful, and actionable. Monitoring is more than a checkbox on your to-do list. This free eBook will give you practical advice to help you succeed in all aspects of monitoring – discovery, alerting, remediation, and troubleshooting. Don’t miss out on this indispensable resource for newbies, experienced IT pros, and everyone in between. Register Now.

Home > Success Center > Storage Manager (STM) > SRM Profiler Administrator Guide > Using rules > Creating a new rule > File analysis rules

File analysis rules

Updated: June 16, 2017

The File Analysis Rule lets you define rules to provide detailed file information.

SRM Profiler currently limits the number of files returned to 5000 per target. You can subdivide the current target by doing local or remote shares, leveraging the depth function, which automatically subdivides the target per subdirectory.

What is File Analysis?

  • Analyzes how you are using your file storage
  • Works on any formatted storage: Server, VM or NAS device

For more information see Set up File Analysis.

What does it report?

  • Summary Information
  • By Owner, Age and Type
  • Find specific files via File Rules
  • File Information - Size, owner, access, creation, modification

These rules are applied to devices via the Policies menu under Settings.

A new Rule must be specified under a policy before it can be used to run a report.

 

Rule Name Enter the name of the rule.
Find X Y files with

X represents the max number of files reported on. It is on a per file system/share basis. Y represents the limit type to be used in cases where more than max(X) number of files are found. The choices are largest, oldest accessed and oldest modified.

Size

If you leave the value set at 0, then all files will be evaluated, and considered potentially valid, regardless of size. Otherwise, only files that are at least the selected size (specified in megabytes) will be evaluated and considered potentially valid.

Accessed Age

If you leave the value set at 0, then all files will be evaluated, and considered potentially valid, regardless of access time. Otherwise, only files that are at least this age, in regards to access time, will be evaluated and considered potentially valid.

Modified Age

If you leave the value set at 0, then all files will be evaluated, and considered potentially valid, regardless of modified time. Otherwise, only files that are at least this age, in regards to modified time, will be evaluated and considered potentially valid.

Created Age

If you leave the value set at 0, then all files will be evaluated, and considered potentially valid, regardless of created time. Otherwise, only files that are at least this age, in regards to created time, will be evaluated and considered potentially valid.

File Path Regular Expression:

You can specify a regular expression (based on the Java implementation of regular expressions) that all files must match, in regards to file name and path, in order to be evaluated and considered potentially valid. If nothing is specified, then all files are evaluated, and considered potentially valid.

Regex Examples:

  • To Find files that have a date in their extension, e.g. 2006-09-20 :
    Create a Rule with the File Path Regular Expression .*[\d]{4}-[\d]{2}-[\d]{2}.* This returns files like "Localdevice_log.2007-09-04.txt" as well as files like "bookmarks-2007-10-01.html".
  • To Find only log files that have a date in their extension:
    Edit the File Path Regular Expression in (1) to .*log.[\d]{4}-[\d]{2}-[\d]{2}.* This will give just the log files with a date in the file name.
  • To modify the search in (2) to exclude years ending in 6 e.g. 2006\
    Edit the File Path Regular Expression to .*log.[\d]{3}[0-5[7-9]]-[\d]{2}-[\d]{2}.*
  • To Find files with extensions line ab5e1073_ad9b_48df_b07f_3e445b5a45cf.
    Create a Rule with the File Path Regular Expression .*[\w]{8}_[\w]{4}_[\w]{4}_[\w]{4}_[\w]{12}.*
  • To Find files that start with the numbers 118:
    Create a Rule with the File Path Regular Expression .*118[\d]{7}.*
  • Regular expression to exclude all ZIP Files:
    Create a Rule with the File Path Regular Expression .*(?i:(?<!\.zip))$
  • Regular expression to exclude PST and OST files:
    Create a Rule with the File Path Regular Expression .*(?i:(?<!\.[op]st))$
File Types A list of file types (extensions) returned by the rule. The files can be selected by using filters based on starting letters, expression, or by adding a new file type.
Case-sensitive Define whether the file names will be case-sensitive. If the box is checked, file names with capital letters will be different than names with lower case letters.

Click Save.

 

 

Last modified

Tags

Classifications

Public